summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index df89836d099..371ddedbd74 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1507,9 +1507,15 @@ between them, return t; otherwise return nil.")
while (count1 < 0)
{
- while (from > stop)
+ while (1)
{
int quoted;
+ if (from <= stop)
+ {
+ SET_PT (stop);
+ immediate_quit = 0;
+ return Qnil;
+ }
DEC_POS (from);
quoted = char_quoted (from);