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:
KillTheMule
2019-02-24 14:17:30 +01:00
committed by Justin M. Keyes
parent 6cd4ff2ab7
commit 018e0d5a19
3 changed files with 31 additions and 3 deletions

View File

@@ -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);
/*