Skip to content

Commit 4a96bd0

Browse files
committed
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.
1 parent 3fd86dc commit 4a96bd0

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/tag.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,13 +1797,16 @@ find_tags(pat, num_matches, matchesp, flags, mincount, buf_ffname)
17971797
*/
17981798
if (state == TS_START)
17991799
{
1800-
/* The header ends when the line sorts below "!_TAG_".
1801-
* There may be non-header items before the header though,
1802-
* e.g. "!" itself. When case is folded lower case letters
1803-
* sort before "_". */
1800+
/* The header ends when the line sorts below "!_TAG_". When
1801+
* case is folded lower case letters sort before "_". */
18041802
if (STRNCMP(lbuf, "!_TAG_", 6) <= 0
18051803
|| (lbuf[0] == '!' && ASCII_ISLOWER(lbuf[1])))
18061804
{
1805+
if (STRNCMP(lbuf, "!_TAG_", 6) != 0)
1806+
/* Non-header item before the header, e.g. "!" itself.
1807+
*/
1808+
goto parse_line;
1809+
18071810
/*
18081811
* Read header line.
18091812
*/
@@ -1898,6 +1901,7 @@ find_tags(pat, num_matches, matchesp, flags, mincount, buf_ffname)
18981901
#endif
18991902
}
19001903

1904+
parse_line:
19011905
/*
19021906
* Figure out where the different strings are in this line.
19031907
* For "normal" tags: Do a quick check if the tag matches.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
17,
741743
/**/
742744
16,
743745
/**/

0 commit comments

Comments
 (0)