patch 9.1.0679: Rename from w_closing to w_locked is incomplete

Commit: 
https://github.com/vim/vim/commit/bc11f6d9d4f580179d3963f3c489881904d6cd62
Author: zeertzjq <zeert...@outlook.com>
Date:   Fri Aug 16 21:11:31 2024 +0200

    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: #15504
    
    Signed-off-by: zeertzjq <zeert...@outlook.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 349269a2b..b2aaf1cab 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2838,7 +2838,7 @@ do_ecmd(
                int         did_decrement;
                buf_T       *was_curbuf = curbuf;
 
-               // Set the w_closing flag to avoid that autocommands close the
+               // Set the w_locked flag to avoid that autocommands close the
                // window.  And set b_locked for the same reason.
                the_curwin->w_locked = TRUE;
                ++buf->b_locked;
diff --git a/src/structs.h b/src/structs.h
index abda3a0c3..847972f5a 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -3785,8 +3785,7 @@ struct window_S
     synblock_T *w_s;               // for :ownsyntax
 #endif
 
-    int                w_locked;           // window is being closed, don't let
-                                   // autocommands close it too.
+    int                w_locked;           // don't let autocommands close the 
window
 
     frame_T    *w_frame;           // frame containing this window
 
diff --git a/src/terminal.c b/src/terminal.c
index f80196096..073f8dd48 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -3647,7 +3647,7 @@ term_after_channel_closed(term_T *term)
        if (term->tl_finish == TL_FINISH_CLOSE)
        {
            aco_save_T  aco;
-           int         do_set_w_closing = term->tl_buffer->b_nwindows == 0;
+           int         do_set_w_locked = term->tl_buffer->b_nwindows == 0;
 #ifdef FEAT_PROP_POPUP
            win_T       *pwin = NULL;
 
@@ -3678,11 +3678,11 @@ term_after_channel_closed(term_T *term)
            {
                // Avoid closing the window if we temporarily use it.
                if (is_aucmd_win(curwin))
-                   do_set_w_closing = TRUE;
-               if (do_set_w_closing)
+                   do_set_w_locked = TRUE;
+               if (do_set_w_locked)
                    curwin->w_locked = TRUE;
                do_bufdel(DOBUF_WIPE, (char_u *)"", 1, fnum, fnum, FALSE);
-               if (do_set_w_closing)
+               if (do_set_w_locked)
                    curwin->w_locked = FALSE;
                aucmd_restbuf(&aco);
            }
diff --git a/src/version.c b/src/version.c
index 08b3fafd7..798e55845 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    679,
 /**/
     678,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sf2Ps-005ubu-AP%40256bit.org.

Raspunde prin e-mail lui