summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index 9c5afc72..abae31e5 100644
--- a/term.c
+++ b/term.c
@@ -444,7 +444,7 @@ term_word(struct termp *p, const char *word)
word++;
esc = mandoc_escape(&word, &seq, &sz);
if (ESCAPE_ERROR == esc)
- break;
+ continue;
if (TERMENC_ASCII != p->enc)
switch (esc) {
@@ -683,7 +683,7 @@ term_strlen(const struct termp *p, const char *cp)
cp++;
esc = mandoc_escape(&cp, &seq, &ssz);
if (ESCAPE_ERROR == esc)
- return(sz);
+ continue;
if (TERMENC_ASCII != p->enc)
switch (esc) {