diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2019-02-24 14:17:30 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-01 20:01:50 +0100 |
commit | 018e0d5a19c3f710f41a78bcbb0c6e3e393a5ed8 (patch) | |
tree | 2fe98bc8cd85b3984b3e4e0933b79e765917a59e /src/nvim/buffer.c | |
parent | 6cd4ff2ab724583acf3a6e582ad55d0561c7bd28 (diff) | |
download | rneovim-018e0d5a19c3f710f41a78bcbb0c6e3e393a5ed8.tar.gz rneovim-018e0d5a19c3f710f41a78bcbb0c6e3e393a5ed8.tar.bz2 rneovim-018e0d5a19c3f710f41a78bcbb0c6e3e393a5ed8.zip |
API/buffer-updates: always detach on buf-reload #9643
Independently of the 'undoreload' option and the length of the file.
closes #9642
closes #9643
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 7fd4326914..6ae239c9c3 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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); /* |