0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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

@@ -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);