aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-03-04 13:27:33 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2017-03-15 15:01:06 +0100
commita5d03be7b8769f0518601c26e32fec26a2568390 (patch)
tree97859173e15c06b552e2ab5e296e1f4286064c1f
parent9500ecdda55391a116286bf9c9fccf298f357a59 (diff)
downloadrneovim-a5d03be7b8769f0518601c26e32fec26a2568390.tar.gz
rneovim-a5d03be7b8769f0518601c26e32fec26a2568390.tar.bz2
rneovim-a5d03be7b8769f0518601c26e32fec26a2568390.zip
api: bump api level to 2
-rw-r--r--CMakeLists.txt4
-rw-r--r--src/nvim/api/buffer.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2fd5209396..1a058f2bff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,9 +68,9 @@ set(NVIM_VERSION_PATCH 0)
set(NVIM_VERSION_PRERELEASE "-dev") # for package maintainers
# 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_PRERELEASE false)
+set(NVIM_API_PRERELEASE true)
file(TO_CMAKE_PATH ${CMAKE_CURRENT_LIST_DIR}/.git FORCED_GIT_DIR)
include(GetGitRevisionDescription)
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index 1d33035fc2..b75a2c7211 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -435,6 +435,7 @@ Object nvim_buf_get_var(Buffer buffer, String name, Error *err)
///
/// @return `b:changedtick` value.
Integer nvim_buf_get_changedtick(Buffer buffer, Error *err)
+ FUNC_API_SINCE(2)
{
const buf_T *const buf = find_buffer_by_handle(buffer, err);