diff src/intervals.c @ 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 507f64624555
children dea4ce3d7a4d
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;