aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r--src/nvim/memory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index d68ca6b62e..373693a6fe 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -575,6 +575,9 @@ void free_all_mem(void)
// Don't want to trigger autocommands from here on.
block_autocmds();
+ // Ensure cmdline window doesn't prevent closing tabs and windows.
+ cmdwin_type = 0;
+
// Close all tabs and windows. Reset 'equalalways' to avoid redraws.
p_ea = false;
if (first_tabpage->tp_next != NULL) {