summaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tag.c b/src/tag.c
index 62533f64e8..8c36ec3fb8 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -515,7 +515,7 @@ do_tag(tag, type, count, forceit, verbose)
* If a count is supplied to the ":tag <name>" command, then
* jump to count'th matching tag.
*/
- if (type == DT_TAG && count > 0)
+ if (type == DT_TAG && *tag != NUL && count > 0)
cur_match = count - 1;
if (type == DT_SELECT || type == DT_JUMP