diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-16 07:34:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 07:34:02 +0800 |
commit | 04dfa2eea914086a9f42a5a00a33e9524f9fded4 (patch) | |
tree | c6502c68406be5ae3ef88e292f81cff9f9d71ac2 /src/nvim/fileio.c | |
parent | d60eeacae4ce4aa780636b90199ac20af609e91b (diff) | |
parent | 163add40b8b98b91dfb8eff589f49dc75f1032ea (diff) | |
download | rneovim-04dfa2eea914086a9f42a5a00a33e9524f9fded4.tar.gz rneovim-04dfa2eea914086a9f42a5a00a33e9524f9fded4.tar.bz2 rneovim-04dfa2eea914086a9f42a5a00a33e9524f9fded4.zip |
Merge pull request #27485 from zeertzjq/vim-9.1.0112
vim-patch:9.1.{0112,0113}
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index a06a773f47..2c96e4bd87 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -3171,8 +3171,7 @@ void buf_reload(buf_T *buf, int orig_mode, bool reload_options) // Mark the buffer as unmodified and free undo info. unchanged(buf, true, true); if ((flags & READ_KEEP_UNDO) == 0) { - u_blockfree(buf); - u_clearall(buf); + u_clearallandblockfree(buf); } else { // Mark all undo states as changed. u_unchanged(curbuf); |