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/fileio.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/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index b240e7b134..714bbb5780 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -5076,7 +5076,8 @@ void buf_reload(buf_T *buf, int orig_mode) // Mark all undo states as changed. u_unchanged(curbuf); } - buf_updates_unregister_all(curbuf); + buf_updates_unload(curbuf, true); + curbuf->b_mod_set = true; } } xfree(ea.cmd); |