comparison src/xdisp.c @ 37271:0904e8f4e08a

(try_window_id): When scrolling on a terminal, take the change of window_internal_height into account.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 09 Apr 2001 12:36:11 +0000
parents 98abc7850a87
children 600d4fa98eb1
comparison
equal deleted inserted replaced
37270:9bf32a648127 37271:0904e8f4e08a
11426 /* Terminal frame. In this case, dvpos gives the number of 11426 /* Terminal frame. In this case, dvpos gives the number of
11427 lines to scroll by; dvpos < 0 means scroll up. */ 11427 lines to scroll by; dvpos < 0 means scroll up. */
11428 int first_unchanged_at_end_vpos 11428 int first_unchanged_at_end_vpos
11429 = MATRIX_ROW_VPOS (first_unchanged_at_end_row, w->current_matrix); 11429 = MATRIX_ROW_VPOS (first_unchanged_at_end_row, w->current_matrix);
11430 int from = XFASTINT (w->top) + first_unchanged_at_end_vpos; 11430 int from = XFASTINT (w->top) + first_unchanged_at_end_vpos;
11431 int end = XFASTINT (w->top) + window_internal_height (w); 11431 int end = (XFASTINT (w->top)
11432 + (WINDOW_WANTS_HEADER_LINE_P (w) ? 1 : 0)
11433 + window_internal_height (w));
11432 11434
11433 /* Perform the operation on the screen. */ 11435 /* Perform the operation on the screen. */
11434 if (dvpos > 0) 11436 if (dvpos > 0)
11435 { 11437 {
11436 /* Scroll last_unchanged_at_beg_row to the end of the 11438 /* Scroll last_unchanged_at_beg_row to the end of the