comparison src/buffer.c @ 19195:2ef19eed524a v8.2.0156

patch 8.2.0156: various typos in source files and tests Commit: https://github.com/vim/vim/commit/4b96df5a017a04141c4e901b1fc5704a3ca48099 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 26 22:00:26 2020 +0100 patch 8.2.0156: various typos in source files and tests Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes https://github.com/vim/vim/issues/5532)
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Jan 2020 22:15:05 +0100
parents af1eca322b9e
children 1d3b2ce65ae0
comparison
equal deleted inserted replaced
19194:9986e645676b 19195:2ef19eed524a
1688 // close_windows() or apply_autocmds() may change curbuf and wipe out "buf" 1688 // close_windows() or apply_autocmds() may change curbuf and wipe out "buf"
1689 prevbuf = curbuf; 1689 prevbuf = curbuf;
1690 set_bufref(&prevbufref, prevbuf); 1690 set_bufref(&prevbufref, prevbuf);
1691 set_bufref(&newbufref, buf); 1691 set_bufref(&newbufref, buf);
1692 1692
1693 // Autocommands may delete the curren buffer and/or the buffer we wan to go 1693 // Autocommands may delete the current buffer and/or the buffer we want to go
1694 // to. In those cases don't close the buffer. 1694 // to. In those cases don't close the buffer.
1695 if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf) 1695 if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf)
1696 || (bufref_valid(&prevbufref) 1696 || (bufref_valid(&prevbufref)
1697 && bufref_valid(&newbufref) 1697 && bufref_valid(&newbufref)
1698 #ifdef FEAT_EVAL 1698 #ifdef FEAT_EVAL
1711 #else 1711 #else
1712 if (bufref_valid(&prevbufref)) 1712 if (bufref_valid(&prevbufref))
1713 #endif 1713 #endif
1714 { 1714 {
1715 win_T *previouswin = curwin; 1715 win_T *previouswin = curwin;
1716
1716 if (prevbuf == curbuf) 1717 if (prevbuf == curbuf)
1717 u_sync(FALSE); 1718 u_sync(FALSE);
1718 close_buffer(prevbuf == curwin->w_buffer ? curwin : NULL, prevbuf, 1719 close_buffer(prevbuf == curwin->w_buffer ? curwin : NULL, prevbuf,
1719 unload ? action : (action == DOBUF_GOTO 1720 unload ? action : (action == DOBUF_GOTO
1720 && !buf_hide(prevbuf) 1721 && !buf_hide(prevbuf)