# HG changeset patch # User Bram Moolenaar # Date 1645460103 -3600 # Node ID 126826449b54511175c89403e9908da667777d8a # Parent 27c106e944b89e37910115d0d594524066db1c0b patch 8.2.4432: cannot use settabvar() while the cmdline window is open Commit: https://github.com/vim/vim/commit/592f6250017c31c8996325403e511f4502077ba5 Author: Bram Moolenaar 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) diff --git a/src/version.c b/src/version.c --- 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, diff --git a/src/window.c b/src/window.c --- 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);