# HG changeset patch # User Jim Blandy # Date 681093571 0 # Node ID 54ac13a6f74e059cbd3760b81ff69f745d34e549 # Parent d56e16bd220a24bd8cdb1629ebef7c7619bdbe30 *** empty log message *** diff -r d56e16bd220a -r 54ac13a6f74e src/xdisp.c --- a/src/xdisp.c Thu Aug 01 18:50:36 1991 +0000 +++ b/src/xdisp.c Fri Aug 02 00:39:31 1991 +0000 @@ -1036,7 +1036,7 @@ /* Find position before which nothing is changed. */ bp = *compute_motion (start, 0, lmargin, - beg_unchanged + 1, 10000, 10000, width, hscroll, + beg_unchanged + 1, height + 1, 0, width, hscroll, pos_tab_offset (w, start)); if (bp.vpos >= height) { @@ -1046,6 +1046,9 @@ We don't need to change the screen at all. But we need to update window_end_pos to account for any change in buffer size. */ + bp = *compute_motion (start, 0, lmargin, + Z, height, 0, + width, hscroll, pos_tab_offset (w, start)); XFASTINT (w->window_end_vpos) = height; XFASTINT (w->window_end_pos) = Z - bp.bufpos; return 1;