]> git.eshelyaron.com Git - emacs.git/commitdiff
(move_if_not_intangible): Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Sat, 31 May 1997 08:34:13 +0000 (08:34 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 31 May 1997 08:34:13 +0000 (08:34 +0000)
src/intervals.c

index ce2adc375f3a0ed25f5da3f6d6374fff286d5fe1..024a4f3190315e13d55dcf35328c6cce26dd1063 100644 (file)
@@ -1868,7 +1868,7 @@ move_if_not_intangible (position)
   if (! NILP (Vinhibit_point_motion_hooks))
     /* If intangible is inhibited, always move point to POSITION.  */
     ;
-  else if (PT < position)
+  else if (PT < position && pos < ZV)
     {
       /* We want to move forward, so check the text before POSITION.  */
 
@@ -1884,7 +1884,7 @@ move_if_not_intangible (position)
                      intangible_propval))
          pos = Fprevious_char_property_change (pos, Qnil);
     }
-  else
+  else if (pos > BEGV)
     {
       /* We want to move backward, so check the text after POSITION.  */