From: Richard M. Stallman Date: Sat, 31 May 1997 08:34:13 +0000 (+0000) Subject: (move_if_not_intangible): Fix previous change. X-Git-Tag: emacs-20.1~1868 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5509c7ff85ea8d894338e507ab9c981cae1e5941;p=emacs.git (move_if_not_intangible): Fix previous change. --- diff --git a/src/intervals.c b/src/intervals.c index ce2adc375f3..024a4f31903 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -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. */