From: Karl Heuer Date: Thu, 21 Dec 1995 16:52:06 +0000 (+0000) Subject: (redisplay_window): Don't do the scroll_step thing X-Git-Tag: emacs-19.34~2100 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2c081c2d63ae9807b288dcac1d02ed2129a2940e;p=emacs.git (redisplay_window): Don't do the scroll_step thing if startp is outside the accessible part of the buffer. --- diff --git a/src/xdisp.c b/src/xdisp.c index c64dd89f81d..aa7226cfd8a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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) {