From 2c081c2d63ae9807b288dcac1d02ed2129a2940e Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 21 Dec 1995 16:52:06 +0000 Subject: [PATCH] (redisplay_window): Don't do the scroll_step thing if startp is outside the accessible part of the buffer. --- src/xdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.2