0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4454: resetting cmdwin_type only for one situation

Problem:    Resetting cmdwin_type only for one situation.
Solution:   Reset cmdwin_type before closing windows. (closes #9822)
This commit is contained in:
zeertzjq
2022-02-23 12:23:08 +00:00
committed by Bram Moolenaar
parent 4791fcd825
commit 6a8b13614e
4 changed files with 7 additions and 3 deletions

View File

@@ -2856,6 +2856,10 @@ win_free_all(void)
{
int dummy;
#ifdef FEAT_CMDWIN
// avoid an error for switching tabpage with the cmdline window open
cmdwin_type = 0;
#endif
while (first_tabpage->tp_next != NULL)
tabpage_close(TRUE);