1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2013-09-05 12:06:33 +02:00
parent 65f04f67f1
commit 966d71c852
2 changed files with 10 additions and 4 deletions

View File

@@ -1797,13 +1797,16 @@ line_read_in:
*/ */
if (state == TS_START) if (state == TS_START)
{ {
/* The header ends when the line sorts below "!_TAG_". /* The header ends when the line sorts below "!_TAG_". When
* There may be non-header items before the header though, * case is folded lower case letters sort before "_". */
* e.g. "!" itself. When case is folded lower case letters
* sort before "_". */
if (STRNCMP(lbuf, "!_TAG_", 6) <= 0 if (STRNCMP(lbuf, "!_TAG_", 6) <= 0
|| (lbuf[0] == '!' && ASCII_ISLOWER(lbuf[1]))) || (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. * Read header line.
*/ */
@@ -1898,6 +1901,7 @@ line_read_in:
#endif #endif
} }
parse_line:
/* /*
* Figure out where the different strings are in this line. * Figure out where the different strings are in this line.
* For "normal" tags: Do a quick check if the tag matches. * For "normal" tags: Do a quick check if the tag matches.

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
17,
/**/ /**/
16, 16,
/**/ /**/