From c1e37901fc8486c9960d7290e521ba51e292e94b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 18 Apr 2006 21:55:01 +0000 Subject: updated for version 7.0e02 --- src/tag.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/tag.c') diff --git a/src/tag.c b/src/tag.c index 3f0a35b96..24809e34f 100644 --- a/src/tag.c +++ b/src/tag.c @@ -3844,14 +3844,17 @@ get_tags(list, pat) if (*p == ':' && len > 0) { s = ++p; - while (*p != NUL && *p >= ' ' && *p < 127) + while (*p != NUL && *p >= ' ') ++p; n[len] = NUL; if (add_tag_field(dict, (char *)n, s, p) == FAIL) ret = FAIL; n[len] = ':'; } - --p; + else + /* Skip field without colon. */ + while (*p != NUL && *p >= ' ') + ++p; } } } -- cgit v1.2.1