changeset 8594:4d8d02befd11

(redisplay_window): Don't access text before BEGV.
author Richard M. Stallman <rms@gnu.org>
date Tue, 23 Aug 1994 20:50:09 +0000
parents ade21bb3acc8
children 099f80df77bf
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Aug 23 19:53:39 1994 +0000
+++ b/src/xdisp.c	Tue Aug 23 20:50:09 1994 +0000
@@ -1179,7 +1179,7 @@
   /* If current starting point was originally the beginning of a line
      but no longer is, find a new starting point.  */
   else if (!NILP (w->start_at_line_beg)
-	   && !(startp == BEGV
+	   && !(startp <= BEGV
 		|| FETCH_CHAR (startp - 1) == '\n'))
     {
       goto recenter;
@@ -1272,8 +1272,8 @@
   try_window (window, pos.bufpos);
 
   startp = marker_position (w->start);
-  w->start_at_line_beg = 
-    (startp == BEGV || FETCH_CHAR (startp - 1) == '\n') ? Qt : Qnil;
+  w->start_at_line_beg 
+    = (startp == BEGV || FETCH_CHAR (startp - 1) == '\n') ? Qt : Qnil;
 
 done:
   if ((!NILP (w->update_mode_line)