Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
23743:27e3718c6836 | 23744:fc031340f8f9 |
---|---|
557 call delete('.a.swp') | 557 call delete('.a.swp') |
558 call delete('.b.swp') | 558 call delete('.b.swp') |
559 call delete('.c.swp') | 559 call delete('.c.swp') |
560 endfunc | 560 endfunc |
561 | 561 |
562 " Test for ":all" not working when in the cmdline window | |
563 func Test_all_not_allowed_from_cmdwin() | |
564 au BufEnter * all | |
565 next x | |
566 call assert_fails(":norm 7q?x\<CR>", 'E11:') | |
567 au! BufEnter | |
568 endfunc | |
569 | |
562 " vim: shiftwidth=2 sts=2 expandtab | 570 " vim: shiftwidth=2 sts=2 expandtab |