summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2006-05-01 13:09:24 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2006-05-01 13:09:24 +0000
commite43d35caf63c31ace1790df7203625a48df80ed1 (patch)
tree592cd5018cbee0b8a84131e939a7b819e6810bca /src/syntax.c
parentcfc868858c4a53e642e4d3634599b80e3294380e (diff)
downloademacs-e43d35caf63c31ace1790df7203625a48df80ed1.tar.gz
(Fforward_comment): Detect generic comment at beginning of
buffer when moving backwards.
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 f56bc1181c7..1c8d0debbf3 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2123,8 +2123,6 @@ between them, return t; otherwise return nil. */)
while (1)
{
DEC_BOTH (from, from_byte);
- if (from == stop)
- break;
UPDATE_SYNTAX_TABLE_BACKWARD (from);
c = FETCH_CHAR (from_byte);
if (SYNTAX (c) == Scomment_fence
@@ -2133,6 +2131,8 @@ between them, return t; otherwise return nil. */)
found = 1;
break;
}
+ else if (from == stop)
+ break;
}
if (found == 0)
{