]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0130: missing range flags for the :tab command v9.2.0130
authorDoug Kearns <dougkearns@gmail.com>
Mon, 9 Mar 2026 19:52:30 +0000 (19:52 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 9 Mar 2026 19:52:30 +0000 (19:52 +0000)
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 <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/ex_cmds.h
src/version.c

index a3d705d5f1cea94ab9c7f2cc66d7ee57f82005d6..f51f584e05fdf395f304702bf00018a48e67bf0b 100644 (file)
@@ -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),
index 29f46f381ace4f604222238ee445a558f373c559..0a8788b0b53d4a5a5bce7941ed752c4fa7e5b67c 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    130,
 /**/
     129,
 /**/