diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2006-05-01 13:09:24 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2006-05-01 13:09:24 +0000 |
commit | e43d35caf63c31ace1790df7203625a48df80ed1 (patch) | |
tree | 592cd5018cbee0b8a84131e939a7b819e6810bca /src/syntax.c | |
parent | cfc868858c4a53e642e4d3634599b80e3294380e (diff) | |
download | emacs-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.c | 4 |
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) { |