diff src/testdir/test_arglist.vim @ 23744:fc031340f8f9 v8.2.2413

patch 8.2.2413: crash when using :all while using a cmdline window Commit: https://github.com/vim/vim/commit/bb4b93ed85726c3921596ca267f531c8c94d819a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 26 21:35:08 2021 +0100 patch 8.2.2413: crash when using :all while using a cmdline window Problem: Crash when using :all while using a cmdline window. (Zdenek Dohnal) Solution: Disallow :all from the cmdline window.
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jan 2021 21:45:04 +0100
parents b545334ae654
children 93f90f2ff4e9
line wrap: on
line diff
--- 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