aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-12-12 09:55:49 +0100
committerGitHub <noreply@github.com>2020-12-12 09:55:49 +0100
commitb6723e1ea065a818e6cda4c917c9c11d7cb67652 (patch)
treece90bc5e5ab9a7ee4141414857ed88a2ee50c028 /src
parentcacdef5ff18e7123a9e734537a831839bf4ef0ec (diff)
parent74089a908666b18e04d45c418f9eb01e934f0ab1 (diff)
downloadrneovim-b6723e1ea065a818e6cda4c917c9c11d7cb67652.tar.gz
rneovim-b6723e1ea065a818e6cda4c917c9c11d7cb67652.tar.bz2
rneovim-b6723e1ea065a818e6cda4c917c9c11d7cb67652.zip
Merge pull request #13486 from bfredl/bufnoreload
fileio: detach buffer when buffer was reloaded (like with :edit)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/fileio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index ab8072ae1d..f4dd90fad2 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -15,6 +15,7 @@
#include "nvim/ascii.h"
#include "nvim/fileio.h"
#include "nvim/buffer.h"
+#include "nvim/buffer_updates.h"
#include "nvim/change.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
@@ -5082,6 +5083,7 @@ void buf_reload(buf_T *buf, int orig_mode)
// Mark all undo states as changed.
u_unchanged(curbuf);
}
+ buf_updates_unregister_all(curbuf);
}
}
xfree(ea.cmd);