aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-12-16 15:40:21 +0100
committerGitHub <noreply@github.com>2020-12-16 15:40:21 +0100
commit2debabb0805ccd014478e6aff88fce8129a352d0 (patch)
tree37077a4618b573d8c8ac6386df5a0d53ce4e94e2 /src/nvim/api/buffer.c
parent5e202f69b3e42b90bc0393b0cee3bfddd2678216 (diff)
parent30ef8c693c08e0b507851b93c1905f0de86ad384 (diff)
downloadrneovim-2debabb0805ccd014478e6aff88fce8129a352d0.tar.gz
rneovim-2debabb0805ccd014478e6aff88fce8129a352d0.tar.bz2
rneovim-2debabb0805ccd014478e6aff88fce8129a352d0.zip
Merge pull request #13355 from notomo/check-textlock-in-api
api: add textlock check
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r--src/nvim/api/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index 45545d24d9..f1151d196a 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -337,6 +337,7 @@ void nvim_buf_set_lines(uint64_t channel_id,
ArrayOf(String) replacement,
Error *err)
FUNC_API_SINCE(1)
+ FUNC_API_CHECK_TEXTLOCK
{
buf_T *buf = find_buffer_by_handle(buffer, err);
@@ -787,6 +788,7 @@ Boolean nvim_buf_is_loaded(Buffer buffer)
/// - unload: Unloaded only, do not delete. See |:bunload|
void nvim_buf_delete(Buffer buffer, Dictionary opts, Error *err)
FUNC_API_SINCE(7)
+ FUNC_API_CHECK_TEXTLOCK
{
buf_T *buf = find_buffer_by_handle(buffer, err);