Commit: patch 9.2.0917: :quitall not allowed in the command-line window

Christian Brabandt <[email protected]> Thu, 6 Aug 2026 21:30:03 +0200
Newsgroups gmane.editors.vim.devel
Message-ID <[email protected]>
patch 9.2.0917: :quitall not allowed in the command-line window

Commit: https://github.com/vim/vim/commit/c0a19bc25efa6cc760e9629a1f7d1b985a03cb1d
Author: Doug Kearns <[email protected]>
Date:   Thu Aug 6 19:12:56 2026 +0000

    patch 9.2.0917: :quitall not allowed in the command-line window
    
    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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 5dfb82476..a44048342 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1271,7 +1271,7 @@ EXCMD(CMD_quit,		"quit",		ex_quit,
 	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,
diff --git a/src/testdir/test_cmdwin.vim b/src/testdir/test_cmdwin.vim
index 360dc67bb..f5399f76d 100644
--- a/src/testdir/test_cmdwin.vim
+++ b/src/testdir/test_cmdwin.vim
@@ -171,6 +171,10 @@ func Test_cmdwin_jump_to_win()
   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")
diff --git a/src/version.c b/src/version.c
index 78b210fdb..5be07d868 100644
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    917,
 /**/
     916,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1ws3n1-00GVjk-GP%40256bit.org.