summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-18 21:55:01 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-18 21:55:01 +0000
commitc1e37901fc8486c9960d7290e521ba51e292e94b (patch)
tree5367e8f83d9d313dd73c0499fd310f57df5e605f /src/tag.c
parenta93fa7ee7856b54d3778e613c7b7e4b76aaeb2af (diff)
downloadvim-git-c1e37901fc8486c9960d7290e521ba51e292e94b.tar.gz
updated for version 7.0e02v7.0e02
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c7
1 files changed, 5 insertions, 2 deletions
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;
}
}
}