comparison src/xdisp.c @ 371:54ac13a6f74e

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Fri, 02 Aug 1991 00:39:31 +0000
parents d04df545062f
children 1c6c6382f1d7
comparison
equal deleted inserted replaced
370:d56e16bd220a 371:54ac13a6f74e
1034 if (beg_unchanged + 1 < start) 1034 if (beg_unchanged + 1 < start)
1035 return 0; /* Give up if changes go above top of window */ 1035 return 0; /* Give up if changes go above top of window */
1036 1036
1037 /* Find position before which nothing is changed. */ 1037 /* Find position before which nothing is changed. */
1038 bp = *compute_motion (start, 0, lmargin, 1038 bp = *compute_motion (start, 0, lmargin,
1039 beg_unchanged + 1, 10000, 10000, width, hscroll, 1039 beg_unchanged + 1, height + 1, 0, width, hscroll,
1040 pos_tab_offset (w, start)); 1040 pos_tab_offset (w, start));
1041 if (bp.vpos >= height) 1041 if (bp.vpos >= height)
1042 { 1042 {
1043 if (point < bp.bufpos && !bp.contin) 1043 if (point < bp.bufpos && !bp.contin)
1044 { 1044 {
1045 /* All changes are below the screen, and point is on the screen. 1045 /* All changes are below the screen, and point is on the screen.
1046 We don't need to change the screen at all. 1046 We don't need to change the screen at all.
1047 But we need to update window_end_pos to account for 1047 But we need to update window_end_pos to account for
1048 any change in buffer size. */ 1048 any change in buffer size. */
1049 bp = *compute_motion (start, 0, lmargin,
1050 Z, height, 0,
1051 width, hscroll, pos_tab_offset (w, start));
1049 XFASTINT (w->window_end_vpos) = height; 1052 XFASTINT (w->window_end_vpos) = height;
1050 XFASTINT (w->window_end_pos) = Z - bp.bufpos; 1053 XFASTINT (w->window_end_pos) = Z - bp.bufpos;
1051 return 1; 1054 return 1;
1052 } 1055 }
1053 return 0; 1056 return 0;