diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-05 21:18:13 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-05 22:40:28 +0800 |
| commit | 0ae47000e060ad21896c0bb434e99d9a7d8c02b9 (patch) | |
| tree | ce16a0c9fd4644cac29d34a0465afa8479274cb8 /src/nvim/testdir | |
| parent | c64acad4e2d4c8c05404f05dd149da9d34960a3d (diff) | |
| download | rneovim-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.vim | 6 |
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 |