comparison src/xdisp.c @ 13760:7c7cc29b994e

(redisplay_window): Don't do the scroll_step thing if startp is outside the accessible part of the buffer.
author Karl Heuer <kwzh@gnu.org>
date Thu, 21 Dec 1995 16:52:06 +0000
parents e51b69e60614
children cbe1d1a07eb2
comparison
equal deleted inserted replaced
13759:db3649779fcc 13760:7c7cc29b994e
1677 w->update_mode_line = Qt; 1677 w->update_mode_line = Qt;
1678 } 1678 }
1679 1679
1680 /* Try to scroll by specified few lines */ 1680 /* Try to scroll by specified few lines */
1681 1681
1682 if (scroll_step && !current_buffer->clip_changed) 1682 if (scroll_step && !current_buffer->clip_changed
1683 && startp >= BEGV && startp <= ZV)
1683 { 1684 {
1684 if (PT > startp) 1685 if (PT > startp)
1685 { 1686 {
1686 pos = *vmotion (Z - XFASTINT (w->window_end_pos), scroll_step, w); 1687 pos = *vmotion (Z - XFASTINT (w->window_end_pos), scroll_step, w);
1687 if (pos.vpos >= height) 1688 if (pos.vpos >= height)