From 5509c7ff85ea8d894338e507ab9c981cae1e5941 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 31 May 1997 08:34:13 +0000 Subject: [PATCH] (move_if_not_intangible): Fix previous change. --- src/intervals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.39.5