Mercurial > emacs
changeset 53078:70edd5bc7bd7
(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.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sun, 16 Nov 2003 23:44:22 +0000 |
parents | f832dd90f584 |
children | 266ab3a82845 |
files | src/xdisp.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }