]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.017 v7.4.017
authorBram Moolenaar <Bram@vim.org>
Thu, 5 Sep 2013 10:06:33 +0000 (12:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 5 Sep 2013 10:06:33 +0000 (12:06 +0200)
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.

src/tag.c
src/version.c

index 8a3c81c8173f68846f7c6f71c19e375f6706f9b4..55ace15bff6a486c20a7da26e4a07eb3e54e5298 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -1797,13 +1797,16 @@ line_read_in:
             */
            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 @@ line_read_in:
 #endif
            }
 
+parse_line:
            /*
             * Figure out where the different strings are in this line.
             * For "normal" tags: Do a quick check if the tag matches.
index ce71dff777b8a811ab05b3bcdfd807728c6b6536..97657b6e514bd80a62e1663ec1b42a8b63fdd609 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    17,
 /**/
     16,
 /**/