# HG changeset patch # User Kim F. Storm # Date 1069026262 0 # Node ID 70edd5bc7bd7c6d787108de6116208f9cc5ce3c8 # Parent f832dd90f5845102749e25dec39817bdc92ed9b6 (start_display): Set it->first_vpos. (try_window_id): Use first_vpos to start display in first _text_ line if no reusable lines at start of window with header line. diff -r f832dd90f584 -r 70edd5bc7bd7 src/xdisp.c --- a/src/xdisp.c Sun Nov 16 23:43:33 2003 +0000 +++ b/src/xdisp.c Sun Nov 16 23:44:22 2003 +0000 @@ -2201,6 +2201,7 @@ row = w->desired_matrix->rows + first_vpos; init_iterator (it, w, CHARPOS (pos), BYTEPOS (pos), row, DEFAULT_FACE_ID); + it->first_vpos = first_vpos; if (!it->truncate_lines_p) { @@ -13092,8 +13093,9 @@ else { /* There are no reusable lines at the start of the window. - Start displaying in the first line. */ + Start displaying in the first text line. */ start_display (&it, w, start); + it.vpos = it.first_vpos; start_pos = it.current.pos; }