aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-08-17 05:56:25 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-08-17 06:04:52 +0800
commit7df6fbb096b4bedef386236213d72daf45d876aa (patch)
treeba39530bb13e1eb48760f76f8ed7a72385eadbc7 /src
parentb3d291c5656085189e1ba65357119f16e2f5e9b0 (diff)
downloadrneovim-7df6fbb096b4bedef386236213d72daf45d876aa.tar.gz
rneovim-7df6fbb096b4bedef386236213d72daf45d876aa.tar.bz2
rneovim-7df6fbb096b4bedef386236213d72daf45d876aa.zip
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 https://github.com/vim/vim/commit/bc11f6d9d4f580179d3963f3c489881904d6cd62
Diffstat (limited to 'src')
-rw-r--r--src/nvim/buffer_defs.h3
-rw-r--r--src/nvim/ex_cmds.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index e885e3d93b..2edabf0904 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -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
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 1cfdd844a7..8c536d4838 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -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++;