mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
vim-patch:9.1.0679: Rename from w_closing to w_locked is incomplete
Problem: Rename from w_closing to w_locked is incomplete
(after 9.1.0678).
Solution: Rename remaining occurrences of w_closing to w_locked and
update comments (zeertzjq).
closes: vim/vim#15504
bc11f6d9d4
This commit is contained in:
parent
b3d291c565
commit
7df6fbb096
@ -1045,8 +1045,7 @@ struct window_S {
|
||||
|
||||
win_T *w_prev; ///< link to previous window
|
||||
win_T *w_next; ///< link to next window
|
||||
bool w_locked; ///< window is being closed, don't let
|
||||
///< autocommands close it too.
|
||||
bool w_locked; ///< don't let autocommands close the window
|
||||
|
||||
frame_T *w_frame; ///< frame containing this window
|
||||
|
||||
|
@ -2347,7 +2347,7 @@ int do_ecmd(int fnum, char *ffname, char *sfname, exarg_T *eap, linenr_T newlnum
|
||||
win_T *the_curwin = curwin;
|
||||
buf_T *was_curbuf = curbuf;
|
||||
|
||||
// Set w_closing to avoid that autocommands close the window.
|
||||
// Set w_locked to avoid that autocommands close the window.
|
||||
// Set b_locked for the same reason.
|
||||
the_curwin->w_locked = true;
|
||||
buf->b_locked++;
|
||||
|
Loading…
Reference in New Issue
Block a user