Commit 2c081c2d authored by Karl Heuer's avatar Karl Heuer
Browse files

(redisplay_window): Don't do the scroll_step thing

if startp is outside the accessible part of the buffer.
parent fcd4533c
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment