diff src/xdisp.c @ 26908:c5079639cac1

(redisplay_window) <optional new window start>: Check that window start is in [BEGV..ZV].
author Gerd Moellmann <gerd@gnu.org>
date Wed, 15 Dec 1999 16:24:21 +0000
parents e45f9a84fca0
children d7f15cd9c4ad
line wrap: on
line diff
--- a/src/xdisp.c	Wed Dec 15 15:18:34 1999 +0000
+++ b/src/xdisp.c	Wed Dec 15 16:24:21 1999 +0000
@@ -8625,7 +8625,9 @@
 
   /* If someone specified a new starting point but did not insist,
      check whether it can be used.  */
-  if (!NILP (w->optional_new_start))
+  if (!NILP (w->optional_new_start)
+      && CHARPOS (startp) >= BEGV
+      && CHARPOS (startp) <= ZV)
     {
       w->optional_new_start = Qnil;
       /* This takes a mini-buffer prompt into account.  */