mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
buffer updates: add on_reload callback and handle it in treesitter parser
This commit is contained in:
@@ -2537,13 +2537,13 @@ int do_ecmd(
|
||||
goto theend;
|
||||
}
|
||||
u_unchanged(curbuf);
|
||||
buf_updates_unregister_all(curbuf);
|
||||
buf_updates_unload(curbuf, false);
|
||||
buf_freeall(curbuf, BFA_KEEP_UNDO);
|
||||
|
||||
// Tell readfile() not to clear or reload undo info.
|
||||
readfile_flags = READ_KEEP_UNDO;
|
||||
} else {
|
||||
buf_updates_unregister_all(curbuf);
|
||||
buf_updates_unload(curbuf, false);
|
||||
buf_freeall(curbuf, 0); // Free all things for buffer.
|
||||
}
|
||||
// If autocommands deleted the buffer we were going to re-edit, give
|
||||
|
Reference in New Issue
Block a user