mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
buffer updates: add on_reload callback and handle it in treesitter parser
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user