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

@@ -567,8 +567,8 @@ endfunc
func Test_access_freed_mem()
call assert_equal(&columns, winwidth(0))
" This was accessing freed memory
au * 0 vs xxx
" This was accessing freed memory (but with what events?)
au BufEnter,BufLeave,WinEnter,WinLeave 0 vs xxx
arg 0
argadd
call assert_fails("all", "E242:")