aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/syntax.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 587335acef8..f8d987b377c 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3128,8 +3128,9 @@ the prefix syntax flag (p). */)
3128 opoint = pos; 3128 opoint = pos;
3129 opoint_byte = pos_byte; 3129 opoint_byte = pos_byte;
3130 3130
3131 if (pos + 1 > beg) 3131 if (pos <= beg)
3132 DEC_BOTH (pos, pos_byte); 3132 break;
3133 DEC_BOTH (pos, pos_byte);
3133 } 3134 }
3134 3135
3135 SET_PT_BOTH (opoint, opoint_byte); 3136 SET_PT_BOTH (opoint, opoint_byte);