summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index a94245a81..4a0ed23c7 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4597,12 +4597,14 @@ win_free(wp, tp)
if (wp != aucmd_win)
#endif
win_remove(wp, tp);
+#ifdef FEAT_AUTOCMD
if (autocmd_busy)
{
wp->w_next = au_pending_free_win;
au_pending_free_win = wp;
}
else
+#endif
vim_free(wp);
#ifdef FEAT_AUTOCMD