summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
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;
}
}
}