# HG changeset patch # User Karl Heuer # Date 819564726 0 # Node ID 7c7cc29b994e14b450fd532aa758916d0b861d4d # Parent db3649779fcc46feb6d19f73795f2dee069e2087 (redisplay_window): Don't do the scroll_step thing if startp is outside the accessible part of the buffer. diff -r db3649779fcc -r 7c7cc29b994e src/xdisp.c --- 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) {