api: bump api level to 2

This commit is contained in:
Björn Linse 2017-03-04 13:27:33 +01:00
parent 9500ecdda5
commit a5d03be7b8
2 changed files with 3 additions and 2 deletions

View File

@ -68,9 +68,9 @@ set(NVIM_VERSION_PATCH 0)
set(NVIM_VERSION_PRERELEASE "-dev") # for package maintainers set(NVIM_VERSION_PRERELEASE "-dev") # for package maintainers
# API level # API level
set(NVIM_API_LEVEL 1) # Bump this after any API change. set(NVIM_API_LEVEL 2) # Bump this after any API change.
set(NVIM_API_LEVEL_COMPAT 0) # Adjust this after a _breaking_ API change. set(NVIM_API_LEVEL_COMPAT 0) # Adjust this after a _breaking_ API change.
set(NVIM_API_PRERELEASE false) set(NVIM_API_PRERELEASE true)
file(TO_CMAKE_PATH ${CMAKE_CURRENT_LIST_DIR}/.git FORCED_GIT_DIR) file(TO_CMAKE_PATH ${CMAKE_CURRENT_LIST_DIR}/.git FORCED_GIT_DIR)
include(GetGitRevisionDescription) include(GetGitRevisionDescription)

View File

@ -435,6 +435,7 @@ Object nvim_buf_get_var(Buffer buffer, String name, Error *err)
/// ///
/// @return `b:changedtick` value. /// @return `b:changedtick` value.
Integer nvim_buf_get_changedtick(Buffer buffer, Error *err) Integer nvim_buf_get_changedtick(Buffer buffer, Error *err)
FUNC_API_SINCE(2)
{ {
const buf_T *const buf = find_buffer_by_handle(buffer, err); const buf_T *const buf = find_buffer_by_handle(buffer, err);