vim-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 vim/vim#9813)
592f625001
This commit is contained in:
Sean Dewar 2022-02-21 16:19:49 +00:00
parent 880d3537d0
commit 490874f3da
No known key found for this signature in database
GPG Key ID: 08CC2C83AD41B581

View File

@ -4269,7 +4269,9 @@ void goto_tabpage(int n)
/// @param trigger_leave_autocmds when true trigger *Leave autocommands.
void goto_tabpage_tp(tabpage_T *tp, bool trigger_enter_autocmds, bool trigger_leave_autocmds)
{
if (trigger_enter_autocmds || trigger_leave_autocmds) {
CHECK_CMDWIN;
}
// Don't repeat a message in another tab page.
set_keep_msg(NULL, 0);