Commit 522ed7fb authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(try_window_id): When scrolling on a terminal, take

the change of window_internal_height into account.
parent e9c195b1
2001-04-09 Gerd Moellmann <gerd@gnu.org>
* window.c (window_internal_height): Return 1 less if the
window has a header line.
* xdisp.c (try_window_id): When scrolling on a terminal, take
the change of window_internal_height into account.
2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
* gmalloc.c (align): If the argument SIZE would overflow
......
......@@ -11428,7 +11428,9 @@ try_window_id (w)
int first_unchanged_at_end_vpos
= MATRIX_ROW_VPOS (first_unchanged_at_end_row, w->current_matrix);
int from = XFASTINT (w->top) + first_unchanged_at_end_vpos;
int end = XFASTINT (w->top) + window_internal_height (w);
int end = (XFASTINT (w->top)
+ (WINDOW_WANTS_HEADER_LINE_P (w) ? 1 : 0)
+ window_internal_height (w));
/* Perform the operation on the screen. */
if (dvpos > 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment