comparison 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
comparison
equal deleted inserted replaced
23759:63236203045e 23760:bb2afcad503b
169 169
170 autocmd! test_autocmd_bufunload_with_tabnext_group 170 autocmd! test_autocmd_bufunload_with_tabnext_group
171 augroup! test_autocmd_bufunload_with_tabnext_group 171 augroup! test_autocmd_bufunload_with_tabnext_group
172 tablast 172 tablast
173 quit 173 quit
174 endfunc
175
176 func Test_argdelete_in_next()
177 au BufNew,BufEnter,BufLeave,BufWinEnter * argdel
178 call assert_fails('next a b', 'E1156:')
179 au! BufNew,BufEnter,BufLeave,BufWinEnter *
174 endfunc 180 endfunc
175 181
176 func Test_autocmd_bufwinleave_with_tabfirst() 182 func Test_autocmd_bufwinleave_with_tabfirst()
177 tabedit 183 tabedit
178 augroup sample 184 augroup sample