aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-11-16 23:44:22 +0000
committerKim F. Storm2003-11-16 23:44:22 +0000
commit3ccb8bcfd6fa8901b8b975dd808dd8c82dd252ed (patch)
treef3df0a2324a67eab5021e44bc67dc0e2b7040c06 /src
parented7d07bdcfa9384e7cc84b9ae13e231a5ddc13f9 (diff)
downloademacs-3ccb8bcfd6fa8901b8b975dd808dd8c82dd252ed.tar.gz
emacs-3ccb8bcfd6fa8901b8b975dd808dd8c82dd252ed.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 8b026fefa9e..4a32cea2b6e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2201,6 +2201,7 @@ start_display (it, w, pos)
2201 2201
2202 row = w->desired_matrix->rows + first_vpos; 2202 row = w->desired_matrix->rows + first_vpos;
2203 init_iterator (it, w, CHARPOS (pos), BYTEPOS (pos), row, DEFAULT_FACE_ID); 2203 init_iterator (it, w, CHARPOS (pos), BYTEPOS (pos), row, DEFAULT_FACE_ID);
2204 it->first_vpos = first_vpos;
2204 2205
2205 if (!it->truncate_lines_p) 2206 if (!it->truncate_lines_p)
2206 { 2207 {
@@ -13092,8 +13093,9 @@ try_window_id (w)
13092 else 13093 else
13093 { 13094 {
13094 /* There are no reusable lines at the start of the window. 13095 /* There are no reusable lines at the start of the window.
13095 Start displaying in the first line. */ 13096 Start displaying in the first text line. */
13096 start_display (&it, w, start); 13097 start_display (&it, w, start);
13098 it.vpos = it.first_vpos;
13097 start_pos = it.current.pos; 13099 start_pos = it.current.pos;
13098 } 13100 }
13099 13101