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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user