diff options
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 866b40cf6..4bfc0419e 100644 --- a/src/eval.c +++ b/src/eval.c @@ -6792,6 +6792,10 @@ garbage_collect() /* window-local variables */ FOR_ALL_TAB_WINDOWS(tp, wp) set_ref_in_item(&wp->w_winvar.di_tv, copyID); +#ifdef FEAT_AUTOCMD + if (aucmd_win != NULL) + set_ref_in_item(&aucmd_win->w_winvar.di_tv, copyID); +#endif #ifdef FEAT_WINDOWS /* tabpage-local variables */ |