diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-29 21:07:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 21:07:29 +0800 |
commit | d311c5481dede47d752fa39cb00d728ba18ef5bc (patch) | |
tree | dd2c01f384b4c3713a1d9c5b976cd7c0f8c91fcd /src/nvim/eval.c | |
parent | 89f0987bde8124f8fcbbcbf8320dbdabe0d69ba9 (diff) | |
parent | 95f5cf96912727a1ede055211645ac9779f3da44 (diff) | |
download | rneovim-d311c5481dede47d752fa39cb00d728ba18ef5bc.tar.gz rneovim-d311c5481dede47d752fa39cb00d728ba18ef5bc.tar.bz2 rneovim-d311c5481dede47d752fa39cb00d728ba18ef5bc.zip |
Merge pull request #21234 from zeertzjq/vim-9.0.0965
vim-patch:9.0.{0965,0966,0967}: using one window for executing autocommands is insufficient
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index dfa9238327..c4afd6934c 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -4174,8 +4174,11 @@ bool garbage_collect(bool testing) ABORTING(set_ref_in_fmark)(wp->w_jumplist[i].fmark, copyID); } } - if (aucmd_win != NULL) { - ABORTING(set_ref_in_item)(&aucmd_win->w_winvar.di_tv, copyID, NULL, NULL); + // window-local variables in autocmd windows + for (int i = 0; i < AUCMD_WIN_COUNT; i++) { + if (aucmd_win[i].auc_win != NULL) { + ABORTING(set_ref_in_item)(&aucmd_win[i].auc_win->w_winvar.di_tv, copyID, NULL, NULL); + } } // registers (ShaDa additional data) |