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 bbd8d1e5..aeba15f8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2124,7 +2124,9 @@ close_last_window_tabpage(win, free_buf, prev_curtab)
{
if (firstwin == lastwin)
{
+#ifdef FEAT_AUTOCMD
buf_T *old_curbuf = curbuf;
+#endif
/*
* Closing the last window in a tab page. First go to another tab