diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-26 21:35:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-26 21:35:08 +0100 |
commit | bb4b93ed85726c3921596ca267f531c8c94d819a (patch) | |
tree | 6051a56c41cb1482ff005812e6f07187193be6cf /src/testdir/test_arglist.vim | |
parent | ce0370d9e67df80c62ff033aa8ca2dbe86841de9 (diff) |
patch 8.2.2413: crash when using :all while using a cmdline windowv8.2.2413
Problem: Crash when using :all while using a cmdline window. (Zdenek Dohnal)
Solution: Disallow :all from the cmdline window.
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r-- | src/testdir/test_arglist.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index d6c369f0b0..b72fe2d534 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -559,4 +559,12 @@ func Test_quit_with_arglist() call delete('.c.swp') endfunc +" Test for ":all" not working when in the cmdline window +func Test_all_not_allowed_from_cmdwin() + au BufEnter * all + next x + call assert_fails(":norm 7q?x\<CR>", 'E11:') + au! BufEnter +endfunc + " vim: shiftwidth=2 sts=2 expandtab |