diff src/testdir/test_autocmd.vim @ 23760:bb2afcad503b v8.2.2421

patch 8.2.2421: double free when using autocommand with "argdel" Commit: https://github.com/vim/vim/commit/5ed58c7b700fcb9fd03c418300145b616f4bdcdd Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 28 14:24:55 2021 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Jan 2021 14:30:05 +0100
parents 97296182d336
children d97258eca25d
line wrap: on
line diff
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -173,6 +173,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