mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
API/buffer-updates: always detach on buf-reload #9643
Independently of the 'undoreload' option and the length of the file. closes #9642 closes #9643
This commit is contained in:

committed by
Justin M. Keyes

parent
6cd4ff2ab7
commit
018e0d5a19
@@ -591,7 +591,8 @@ void close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last)
|
||||
/* Change directories when the 'acd' option is set. */
|
||||
do_autochdir();
|
||||
|
||||
// disable buffer updates for the current buffer
|
||||
// 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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user