From 49b8d9903bc7a2620ce7cf46228e16f7cd308d2e Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 9 Mar 2026 19:52:30 +0000 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/ex_cmds.h | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ex_cmds.h b/src/ex_cmds.h index a3d705d5f1..f51f584e05 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 29f46f381a..0a8788b0b5 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, /**/