From: Bram Moolenaar Date: Sat, 15 Jun 2013 20:26:52 +0000 (+0200) Subject: updated for version 7.3.1202 X-Git-Tag: v7.3.1202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=335167994849a66a6635429fb42461ad79574b2f;p=vim updated for version 7.3.1202 Problem: Tags are not found in case-folded tags file. (Darren cole, Issue 90) Solution: Take into account that when case folding was used for the tags file "!rm" sorts before the "!_TAG" header lines. --- diff --git a/src/tag.c b/src/tag.c index 248280c7c..8a3c81c81 100644 --- a/src/tag.c +++ b/src/tag.c @@ -1797,7 +1797,12 @@ line_read_in: */ if (state == TS_START) { - if (STRNCMP(lbuf, "!_TAG_", 6) == 0) + /* 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 "_". */ + if (STRNCMP(lbuf, "!_TAG_", 6) <= 0 + || (lbuf[0] == '!' && ASCII_ISLOWER(lbuf[1]))) { /* * Read header line. diff --git a/src/version.c b/src/version.c index 2f47dad7a..3f46c2329 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1202, /**/ 1201, /**/