aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-05 21:18:13 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-05 22:40:28 +0800
commit0ae47000e060ad21896c0bb434e99d9a7d8c02b9 (patch)
treece16a0c9fd4644cac29d34a0465afa8479274cb8 /src/nvim/testdir
parentc64acad4e2d4c8c05404f05dd149da9d34960a3d (diff)
downloadrneovim-0ae47000e060ad21896c0bb434e99d9a7d8c02b9.tar.gz
rneovim-0ae47000e060ad21896c0bb434e99d9a7d8c02b9.tar.bz2
rneovim-0ae47000e060ad21896c0bb434e99d9a7d8c02b9.zip
vim-patch:8.2.2421: double free when using autocommand with "argdel"
Problem: Double free when using autocommand with "argdel". (Houyunsong) Solution: Add the arglist_locked flag. https://github.com/vim/vim/commit/5ed58c7b700fcb9fd03c418300145b616f4bdcdd
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_autocmd.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim
index d766256d4b..07042eab32 100644
--- a/src/nvim/testdir/test_autocmd.vim
+++ b/src/nvim/testdir/test_autocmd.vim
@@ -148,6 +148,12 @@ func Test_autocmd_bufunload_with_tabnext()
quit
endfunc
+func Test_argdelete_in_next()
+ au BufNew,BufEnter,BufLeave,BufWinEnter * argdel
+ call assert_fails('next a b', 'E1156:')
+ au! BufNew,BufEnter,BufLeave,BufWinEnter *
+endfunc
+
func Test_autocmd_bufwinleave_with_tabfirst()
tabedit
augroup sample