Mercurial > vim
diff src/tag.c @ 685:d7e33248b9c8 v7.0206
updated for version 7.0206
author | vimboss |
---|---|
date | Fri, 24 Feb 2006 23:53:04 +0000 |
parents | f1b013312711 |
children | a28f83d37113 |
line wrap: on
line diff
--- a/src/tag.c +++ b/src/tag.c @@ -509,6 +509,13 @@ do_tag(tag, type, count, forceit, verbos 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;