]> granicus.if.org Git - vim/commitdiff
patch 8.2.4432: cannot use settabvar() while the cmdline window is open v8.2.4432
authorBram Moolenaar <Bram@vim.org>
Mon, 21 Feb 2022 16:13:49 +0000 (16:13 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 21 Feb 2022 16:13:49 +0000 (16:13 +0000)
Problem:    Cannot use settabvar() while the cmdline window is open.
Solution:   Only give an error when actually switching tabpage.
            (closes #9813)

src/version.c
src/window.c

index 03f2bd0fd1d2e12880dbb4174788bd22f1cfff86..203ea16e0042ce80e111f6e2ab12fbb7e493a296 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4432,
 /**/
     4431,
 /**/
index b00ed977fc041e15ea7eda41a87668f347618c63..f644f9b8c9fd251f1cb2a35ba27fcb035d4a3e86 100644 (file)
@@ -4392,7 +4392,8 @@ goto_tabpage_tp(
     int                trigger_enter_autocmds,
     int                trigger_leave_autocmds)
 {
-    CHECK_CMDWIN;
+    if (trigger_enter_autocmds || trigger_leave_autocmds)
+       CHECK_CMDWIN;
 
     // Don't repeat a message in another tab page.
     set_keep_msg(NULL, 0);