patch 9.1.1915: :breaklist accepts unprocessed arguments.
Commit:
https://github.com/vim/vim/commit/de7049ede1a31c73bfac70b78a2613d690eb1594
Author: Doug Kearns <[email protected]>
Date: Sat Nov 15 10:13:25 2025 +0000
patch 9.1.1915: :breaklist accepts unprocessed arguments.
Problem: :breaklist accepts unprocessed arguments.
Solution: Remove EX_EXTRA flag from the Ex command definition.
(Doug Kearns)
The command should emit an "E488: Trailing characters" error rather than
silently accept arguments.
closes: #18746
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 f91c37d0b..d588be3b9 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -234,7 +234,7 @@ EXCMD(CMD_breakdel, "breakdel", ex_breakdel,
EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
ADDR_NONE),
EXCMD(CMD_breaklist, "breaklist", ex_breaklist,
- EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
+ EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
ADDR_NONE),
EXCMD(CMD_browse, "browse", ex_wrongmodifier,
EX_NEEDARG|EX_EXTRA|EX_NOTRLCOM|EX_CMDWIN|EX_LOCK_OK,
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index d0987c40a..2c77957f9 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -5176,4 +5176,9 @@ func Test_update_screen_after_wildtrigger()
call StopVimInTerminal(buf)
endfunc
+func Test_breaklist_args_fails()
+ call assert_match('No breakpoints defined', execute(':breaklist'))
+ call assert_fails(':breaklist extra', 'E488:')
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/version.c b/src/version.c
index 3dfd121c9..f501001bb 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1915,
/**/
1914,
/**/
--
--
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/E1vKDXj-004TOc-TL%40256bit.org.