diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-26 22:00:26 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-26 22:00:26 +0100 |
commit | 4b96df5a017a04141c4e901b1fc5704a3ca48099 (patch) | |
tree | ae335d245fc252be0d2237336be8c1cda620c874 /src/buffer.c | |
parent | a5d5953d59730d9bf9c00a727c4aeb56f6ffc944 (diff) | |
download | vim-git-4b96df5a017a04141c4e901b1fc5704a3ca48099.tar.gz |
patch 8.2.0156: various typos in source files and testsv8.2.0156
Problem: Various typos in source files and tests.
Solution: Fix the typos. (Emir Sari, closes #5532)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index f56ff0b62..7ff809773 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1690,7 +1690,7 @@ set_curbuf(buf_T *buf, int action) set_bufref(&prevbufref, prevbuf); set_bufref(&newbufref, buf); - // Autocommands may delete the curren buffer and/or the buffer we wan to go + // Autocommands may delete the current buffer and/or the buffer we want to go // to. In those cases don't close the buffer. if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf) || (bufref_valid(&prevbufref) @@ -1713,6 +1713,7 @@ set_curbuf(buf_T *buf, int action) #endif { win_T *previouswin = curwin; + if (prevbuf == curbuf) u_sync(FALSE); close_buffer(prevbuf == curwin->w_buffer ? curwin : NULL, prevbuf, |