diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-24 19:24:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-24 19:24:47 +0000 |
commit | b6db1467622be046dbf00b2213fd9f49f4f3cccb (patch) | |
tree | 442a1f5bd1a818ba1667b46b5d588776874b90e6 /src/testdir/test_autocmd.vim | |
parent | 679140c56bbabf12a199d94f584b1b9dfc9809fd (diff) |
patch 8.2.3886: can define autocmd for every event by using "au!"v8.2.3886
Problem: Can define autocmd for every event by using "au!".
Solution: Check if a command is present also for "au!".
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 4bdb8dc22e..b6f621dbff 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -1896,6 +1896,7 @@ endfunc func Test_autocommand_all_events() call assert_fails('au * * bwipe', 'E1155:') call assert_fails('au * x bwipe', 'E1155:') + call assert_fails('au! * x bwipe', 'E1155:') endfunc function s:Before_test_dirchanged() |