]> git.eshelyaron.com Git - emacs.git/commitdiff
(adjust_point_for_property): Be more careful about termination.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 11 May 2003 15:06:41 +0000 (15:06 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 11 May 2003 15:06:41 +0000 (15:06 +0000)
src/keyboard.c

index 78ae9e74cfe1891007fce4fd9df18890471f8649..5b5b78e634e75a3ce5a46c93db80aa70d2222358 100644 (file)
@@ -1952,7 +1952,7 @@ adjust_point_for_property (last_pt, modified)
                         less than we actually did, so that we still have
                         more freedom below in choosing which end of the range
                         to go to.  */
-                     ? (PT < last_pt ? end : beg)
+                     ? (orig_pt = -1, PT < last_pt ? end : beg)
                      /* We either have moved already or the last point
                         was already in the range: we don't get to choose
                         which end of the range we have to go to.  */