forked from aniani/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: #15504 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
6908db4756
commit
bc11f6d9d4
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user