comparison src/testdir/test_window_cmd.vim @ 23758:97296182d336 v8.2.2420

patch 8.2.2420: too many problems with using all autocommand events Commit: https://github.com/vim/vim/commit/9a046fd08bcae319d39a4dbde2be81decee19013 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 28 13:47:59 2021 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Jan 2021 14:00:04 +0100
parents 93f90f2ff4e9
children 3c165c7432ff
comparison
equal deleted inserted replaced
23757:b873d83d2f87 23758:97296182d336
565 exe "norm! v\<C-W>:\<C-U>echo v:version" 565 exe "norm! v\<C-W>:\<C-U>echo v:version"
566 endfunc 566 endfunc
567 567
568 func Test_access_freed_mem() 568 func Test_access_freed_mem()
569 call assert_equal(&columns, winwidth(0)) 569 call assert_equal(&columns, winwidth(0))
570 " This was accessing freed memory 570 " This was accessing freed memory (but with what events?)
571 au * 0 vs xxx 571 au BufEnter,BufLeave,WinEnter,WinLeave 0 vs xxx
572 arg 0 572 arg 0
573 argadd 573 argadd
574 call assert_fails("all", "E242:") 574 call assert_fails("all", "E242:")
575 au! 575 au!
576 bwipe xxx 576 bwipe xxx