aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-02-10 22:28:52 +0100
committerGitHub <noreply@github.com>2021-02-10 22:28:52 +0100
commit61aea004d7101e138794a337c03ef00a6b3994e6 (patch)
treeed6e5bab2647e1580490d5c4ada4560dbde7eedd /src/nvim/ex_cmds.c
parent230f2ff381d7bced4d1e19bd1853ce75cbde797a (diff)
parent94622ca66b553018c19fbbb615f2e1fee0a8074a (diff)
downloadrneovim-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/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index cd7ff9a00b..ab09284c9d 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -2537,13 +2537,13 @@ int do_ecmd(
goto theend;
}
u_unchanged(curbuf);
- buf_updates_unregister_all(curbuf);
+ buf_updates_unload(curbuf, false);
buf_freeall(curbuf, BFA_KEEP_UNDO);
// Tell readfile() not to clear or reload undo info.
readfile_flags = READ_KEEP_UNDO;
} else {
- buf_updates_unregister_all(curbuf);
+ buf_updates_unload(curbuf, false);
buf_freeall(curbuf, 0); // Free all things for buffer.
}
// If autocommands deleted the buffer we were going to re-edit, give