changeset 13760:7c7cc29b994e

(redisplay_window): Don't do the scroll_step thing if startp is outside the accessible part of the buffer.
author Karl Heuer <kwzh@gnu.org>
date Thu, 21 Dec 1995 16:52:06 +0000
parents db3649779fcc
children e4e1091af4d7
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Dec 21 16:45:29 1995 +0000
+++ b/src/xdisp.c	Thu Dec 21 16:52:06 1995 +0000
@@ -1679,7 +1679,8 @@
 
   /* Try to scroll by specified few lines */
 
-  if (scroll_step && !current_buffer->clip_changed)
+  if (scroll_step && !current_buffer->clip_changed
+      && startp >= BEGV && startp <= ZV)
     {
       if (PT > startp)
 	{