Skip to content
Permalink
Browse files

updated for version 7.4.017

Problem:    ":help !!" does not find the "!!" tag in the help file. (Ben
            Fritz)
Solution:   When reading the start of the tags file do parse lines that are
            not header lines.
  • Loading branch information...
brammool committed Sep 5, 2013
1 parent 65f04f6 commit 966d71c852e1126883846817d3a16590268298f5
Showing with 10 additions and 4 deletions.
  1. +8 −4 src/tag.c
  2. +2 −0 src/version.c
@@ -1797,13 +1797,16 @@ find_tags(pat, num_matches, matchesp, flags, mincount, buf_ffname)
*/
if (state == TS_START)
{
/* The header ends when the line sorts below "!_TAG_".
* There may be non-header items before the header though,
* e.g. "!" itself. When case is folded lower case letters
* sort before "_". */
/* The header ends when the line sorts below "!_TAG_". When
* case is folded lower case letters sort before "_". */
if (STRNCMP(lbuf, "!_TAG_", 6) <= 0
|| (lbuf[0] == '!' && ASCII_ISLOWER(lbuf[1])))
{
if (STRNCMP(lbuf, "!_TAG_", 6) != 0)
/* Non-header item before the header, e.g. "!" itself.
*/
goto parse_line;

/*
* Read header line.
*/
@@ -1898,6 +1901,7 @@ find_tags(pat, num_matches, matchesp, flags, mincount, buf_ffname)
#endif
}

parse_line:
/*
* Figure out where the different strings are in this line.
* For "normal" tags: Do a quick check if the tag matches.
@@ -738,6 +738,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
17,
/**/
16,
/**/

0 comments on commit 966d71c

Please sign in to comment.
You can’t perform that action at this time.