diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-02-07 07:32:19 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-02-10 18:58:46 +0100 |
commit | 94622ca66b553018c19fbbb615f2e1fee0a8074a (patch) | |
tree | ed6e5bab2647e1580490d5c4ada4560dbde7eedd /src/nvim/buffer.c | |
parent | fa5f583981276cb3767f74bec553cfa90e47a74e (diff) | |
download | rneovim-94622ca66b553018c19fbbb615f2e1fee0a8074a.tar.gz rneovim-94622ca66b553018c19fbbb615f2e1fee0a8074a.tar.bz2 rneovim-94622ca66b553018c19fbbb615f2e1fee0a8074a.zip |
buffer updates: add on_reload callback and handle it in treesitter parser
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 19ce02700f..139981b7e1 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -596,7 +596,7 @@ void close_buffer(win_T *win, buf_T *buf, int action, bool abort_if_last) // Disable buffer-updates for the current buffer. // No need to check `unload_buf`: in that case the function returned above. - buf_updates_unregister_all(buf); + buf_updates_unload(buf, false); /* * Remove the buffer from the list. @@ -821,7 +821,7 @@ static void free_buffer_stuff(buf_T *buf, int free_flags) map_clear_int(buf, MAP_ALL_MODES, true, true); // clear local abbrevs XFREE_CLEAR(buf->b_start_fenc); - buf_updates_unregister_all(buf); + buf_updates_unload(buf, false); } /* |