diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-02-10 22:28:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 22:28:52 +0100 |
commit | 61aea004d7101e138794a337c03ef00a6b3994e6 (patch) | |
tree | ed6e5bab2647e1580490d5c4ada4560dbde7eedd /src/nvim/buffer.c | |
parent | 230f2ff381d7bced4d1e19bd1853ce75cbde797a (diff) | |
parent | 94622ca66b553018c19fbbb615f2e1fee0a8074a (diff) | |
download | rneovim-61aea004d7101e138794a337c03ef00a6b3994e6.tar.gz rneovim-61aea004d7101e138794a337c03ef00a6b3994e6.tar.bz2 rneovim-61aea004d7101e138794a337c03ef00a6b3994e6.zip |
Merge pull request #13895 from bfredl/ar2
buffer updates: fix autoread but for real this time
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 19ce02700f..139981b7e1 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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); } /* |