changeset 18078:cd5f9bda791e

(move_if_not_intangible): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Sat, 31 May 1997 08:34:13 +0000
parents 27a0ced43e7e
children 5fbb5aef5649
files src/intervals.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/intervals.c	Sat May 31 07:40:46 1997 +0000
+++ b/src/intervals.c	Sat May 31 08:34:13 1997 +0000
@@ -1868,7 +1868,7 @@
   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 @@
 		      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.  */