changeset 56693:d66d7e7354e3

(move_if_not_intangible): Force POSITION to be between BEGV and ZV.
author Richard M. Stallman <rms@gnu.org>
date Mon, 16 Aug 2004 22:52:29 +0000
parents ccb70b8731b4
children d5801cbd92f5
files src/intervals.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/intervals.c	Mon Aug 16 22:50:44 2004 +0000
+++ b/src/intervals.c	Mon Aug 16 22:52:29 2004 +0000
@@ -2275,6 +2275,10 @@
 	  pos = Fnext_char_property_change (pos, Qnil);
 
     }
+  else if (position < BEGV)
+    position = BEGV;
+  else if (position > ZV)
+    position = ZV;
 
   /* If the whole stretch between PT and POSITION isn't intangible,
      try moving to POSITION (which means we actually move farther