summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index dbdac11694d..d25c4394c6e 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1656,7 +1656,7 @@ skip_chars (forwardp, syntaxp, string, lim)
p = GAP_END_ADDR;
stop = endp;
}
- if (fastmap[*p])
+ if (!fastmap[*p])
break;
p++, pos++;
}
@@ -1709,7 +1709,7 @@ skip_chars (forwardp, syntaxp, string, lim)
p = GPT_ADDR;
stop = endp;
}
- if (fastmap[p[-1]])
+ if (!fastmap[p[-1]])
break;
p--, pos--;
}