changeset 27813:126826449b54 v8.2.4432

patch 8.2.4432: cannot use settabvar() while the cmdline window is open Commit: https://github.com/vim/vim/commit/592f6250017c31c8996325403e511f4502077ba5 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 21 16:13:49 2022 +0000 patch 8.2.4432: cannot use settabvar() while the cmdline window is open Problem: Cannot use settabvar() while the cmdline window is open. Solution: Only give an error when actually switching tabpage. (closes #9813)
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Feb 2022 17:15:03 +0100
parents 27c106e944b8
children 5abd9c1d4f57
files src/version.c src/window.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4432,
+/**/
     4431,
 /**/
     4430,
--- a/src/window.c
+++ b/src/window.c
@@ -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);