1
0
forked from aniani/vim

patch 8.2.2420: too many problems with using all autocommand events

Problem:    Too many problems with using all autocommand events.
Solution:   Disallow defining an autocommand for all events.
This commit is contained in:
Bram Moolenaar
2021-01-28 13:47:59 +01:00
parent d697ddea14
commit 9a046fd08b
6 changed files with 23 additions and 27 deletions

View File

@@ -3833,7 +3833,7 @@ func Test_lbuffer_crash()
sv Xtest
augroup QF_Test
au!
au * * bw
au QuickFixCmdPre,QuickFixCmdPost,BufEnter,BufLeave * bw
augroup END
lbuffer
augroup QF_Test
@@ -3845,7 +3845,7 @@ endfunc
func Test_lexpr_crash()
augroup QF_Test
au!
au * * call setloclist(0, [], 'f')
au QuickFixCmdPre,QuickFixCmdPost,BufEnter,BufLeave * call setloclist(0, [], 'f')
augroup END
lexpr ""
augroup QF_Test
@@ -3880,7 +3880,7 @@ func Test_lvimgrep_crash()
sv Xtest
augroup QF_Test
au!
au * * call setloclist(0, [], 'f')
au QuickFixCmdPre,QuickFixCmdPost,BufEnter,BufLeave * call setloclist(0, [], 'f')
augroup END
lvimgrep quickfix test_quickfix.vim
augroup QF_Test
@@ -4215,7 +4215,7 @@ func Test_lbuffer_with_bwipe()
new
new
augroup nasty
au * * bwipe
au QuickFixCmdPre,QuickFixCmdPost,BufEnter,BufLeave * bwipe
augroup END
lbuffer
augroup nasty
@@ -4228,9 +4228,9 @@ endfunc
func Xexpr_acmd_freelist(cchar)
call s:setup_commands(a:cchar)
" This was using freed memory.
" This was using freed memory (but with what events?)
augroup nasty
au * * call g:Xsetlist([], 'f')
au QuickFixCmdPre,QuickFixCmdPost,BufEnter,BufLeave * call g:Xsetlist([], 'f')
augroup END
Xexpr "x"
augroup nasty