From 592f6250017c31c8996325403e511f4502077ba5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 21 Feb 2022 16:13:49 +0000 Subject: [PATCH] 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) --- src/version.c | 2 ++ src/window.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 03f2bd0fd..203ea16e0 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 b00ed977f..f644f9b8c 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);