]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_window): Don't do the scroll_step thing
authorKarl Heuer <kwzh@gnu.org>
Thu, 21 Dec 1995 16:52:06 +0000 (16:52 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 21 Dec 1995 16:52:06 +0000 (16:52 +0000)
if startp is outside the accessible part of the buffer.

src/xdisp.c

index c64dd89f81d2cba3842013897abf5b7f24f35ad5..aa7226cfd8acc7aa7ac05e42272e53b736b3442a 100644 (file)
@@ -1679,7 +1679,8 @@ redisplay_window (window, just_this_one)
 
   /* 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)
        {