Commit: patch 9.2.0130: missing range flags for the :tab command

2 views
Skip to first unread message

Christian Brabandt

unread,
Mar 9, 2026, 4:02:00 PMMar 9
to vim...@googlegroups.com
patch 9.2.0130: missing range flags for the :tab command

Commit: https://github.com/vim/vim/commit/49b8d9903bc7a2620ce7cf46228e16f7cd308d2e
Author: Doug Kearns <dougk...@gmail.com>
Date: Mon Mar 9 19:52:30 2026 +0000

patch 9.2.0130: missing range flags for the :tab command

Problem: :tab accepts a tab address range but doesn't specify this in
the command specification.
Solution: Add EX_RANGE and EX_ZEROR to the command specification and use
ADDR_TABS (Doug Kearns).

As command modifers are handled separately before these flags are tested
in the ex-command parser they have no effect. However, it's better to
use an accurate description and the command specification table has uses
in other areas like runtime file generation for the Vim filetype.

closes: #19100

Signed-off-by: Doug Kearns <dougk...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index a3d705d5f..f51f584e0 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1560,8 +1560,8 @@ EXCMD(CMD_tags, "tags", do_tags,
EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
ADDR_NONE),
EXCMD(CMD_tab, "tab", ex_wrongmodifier,
- EX_NEEDARG|EX_EXTRA|EX_NOTRLCOM,
- ADDR_NONE),
+ EX_RANGE|EX_ZEROR|EX_NEEDARG|EX_EXTRA|EX_NOTRLCOM,
+ ADDR_TABS),
EXCMD(CMD_tabclose, "tabclose", ex_tabclose,
EX_BANG|EX_RANGE|EX_ZEROR|EX_EXTRA|EX_NOSPC|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
ADDR_TABS),
diff --git a/src/version.c b/src/version.c
index 29f46f381..0a8788b0b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 130,
/**/
129,
/**/
Reply all
Reply to author
Forward
0 new messages