0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2022-02-21 16:13:49 +00:00
parent 993faa3405
commit 592f625001
2 changed files with 4 additions and 1 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4432,
/**/ /**/
4431, 4431,
/**/ /**/

View File

@@ -4392,7 +4392,8 @@ goto_tabpage_tp(
int trigger_enter_autocmds, int trigger_enter_autocmds,
int trigger_leave_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. // Don't repeat a message in another tab page.
set_keep_msg(NULL, 0); set_keep_msg(NULL, 0);