summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-24 23:53:04 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-24 23:53:04 +0000
commit32466aa2e9c45ab355dbaf99a9eedf334bc2e29f (patch)
tree1644d959a04f9f8c6ea5a8fe3c79f037c6915559 /src/tag.c
parent2a3f7eeebfa05a33cc1d8fbba66a3dff976e8dd7 (diff)
downloadvim-git-32466aa2e9c45ab355dbaf99a9eedf334bc2e29f.tar.gz
updated for version 7.0206v7.0206
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tag.c b/src/tag.c
index 8cef850d2..5f01115cb 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -509,6 +509,13 @@ do_tag(tag, type, count, forceit, verbose)
tagmatchname = vim_strsave(name);
}
+ /*
+ * If a count is supplied to the ":tag <name>" command, then
+ * jump to count'th matching tag.
+ */
+ if (type == DT_TAG && count > 0)
+ cur_match = count - 1;
+
if (type == DT_SELECT || type == DT_JUMP)
cur_match = MAXCOL - 1;
max_num_matches = cur_match + 1;