Problem: :quitall not allowed in the command-line window.
Solution: Synchronise the command definition with that of the :qall
alias, adding EX_CMDWIN and EX_LOCK_OK (Doug Kearns).
closes: #20959
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
EX_BANG|EX_RANGE|EX_COUNT|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
ADDR_WINDOWS),
EXCMD(CMD_quitall, "quitall", ex_quit_all,
- EX_BANG|EX_TRLBAR,
+ EX_BANG|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
ADDR_NONE),
EXCMD(CMD_qall, "qall", ex_quit_all,
EX_BANG|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
set modified
call assert_fails('call feedkeys("q/:qall\<CR>", "xt")', ['E37:', 'E162:'])
close!
+ new
+ set modified
+ call assert_fails('call feedkeys("q/:quitall\<CR>", "xt")', ['E37:', 'E162:'])
+ close!
call feedkeys("q/:close\<CR>", "xt")
call assert_equal(1, winnr('$'))
call feedkeys("q/:exit\<CR>", "xt")
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 917,
/**/
916,
/**/