From: Bram Moolenaar Date: Mon, 21 Feb 2022 16:13:49 +0000 (+0000) Subject: patch 8.2.4432: cannot use settabvar() while the cmdline window is open X-Git-Tag: v8.2.4432 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=592f6250017c31c8996325403e511f4502077ba5;p=thirdparty%2Fvim.git 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) --- diff --git a/src/version.c b/src/version.c index 03f2bd0fd1..203ea16e00 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4432, /**/ 4431, /**/ diff --git a/src/window.c b/src/window.c index b00ed977fc..f644f9b8c9 100644 --- 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);