comparison src/xdisp.c @ 6628:c359dfd21b00

(try_window_id): Pass new arg to scroll_frame_lines.
author Richard M. Stallman <rms@gnu.org>
date Fri, 01 Apr 1994 10:14:35 +0000
parents 1253ece9950b
children cd036c4e1dfd
comparison
equal deleted inserted replaced
6627:f8471ecf787b 6628:c359dfd21b00
1612 /* If pure deletion, scroll up as many lines as possible. 1612 /* If pure deletion, scroll up as many lines as possible.
1613 In common case of killing a line, this can save the 1613 In common case of killing a line, this can save the
1614 following line from being overwritten by scrolling 1614 following line from being overwritten by scrolling
1615 and therefore having to be redrawn. */ 1615 and therefore having to be redrawn. */
1616 tem = scroll_frame_lines (f, bp.vpos + top - scroll_amount, 1616 tem = scroll_frame_lines (f, bp.vpos + top - scroll_amount,
1617 top + height - max (0, scroll_amount), 1617 top + height - max (0, scroll_amount),
1618 scroll_amount); 1618 scroll_amount, bp.bufpos);
1619 if (!tem) stop_vpos = height; 1619 if (!tem) stop_vpos = height;
1620 } 1620 }
1621 else if (scroll_amount) 1621 else if (scroll_amount)
1622 { 1622 {
1623 /* If reprinting everything is nearly as fast as scrolling, 1623 /* If reprinting everything is nearly as fast as scrolling,
1632 /* Return "try normal display with same window-start." 1632 /* Return "try normal display with same window-start."
1633 Too bad we can't prevent further scroll-thinking. */ 1633 Too bad we can't prevent further scroll-thinking. */
1634 return -2; 1634 return -2;
1635 tem = scroll_frame_lines (f, ep.vpos + top - scroll_amount, 1635 tem = scroll_frame_lines (f, ep.vpos + top - scroll_amount,
1636 top + height - max (0, scroll_amount), 1636 top + height - max (0, scroll_amount),
1637 scroll_amount); 1637 scroll_amount, ep.bufpos);
1638 if (!tem) stop_vpos = height; 1638 if (!tem) stop_vpos = height;
1639 } 1639 }
1640 } 1640 }
1641 1641
1642 /* In any case, do not display past bottom of window */ 1642 /* In any case, do not display past bottom of window */