changeset 3734:5ada670e1fd8

(set_point): When moving over invis chars, don't screw up at end of buffer.
author Richard M. Stallman <rms@gnu.org>
date Tue, 15 Jun 1993 05:27:54 +0000
parents c1c105ffdd0c
children 7193a99a87c1
files src/intervals.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/intervals.c	Mon Jun 14 22:58:54 1993 +0000
+++ b/src/intervals.c	Tue Jun 15 05:27:54 1993 +0000
@@ -1315,7 +1315,10 @@
     {
       toprev = to;
       to = next_interval (to);
-      position = to->position;
+      if (NULL_INTERVAL_P (to))
+	position = BUF_ZV (buffer);
+      else
+	position = to->position;
     }
 
   buffer->text.pt = position;