]> git.eshelyaron.com Git - emacs.git/commitdiff
(start_display): Set it->first_vpos.
authorKim F. Storm <storm@cua.dk>
Sun, 16 Nov 2003 23:44:22 +0000 (23:44 +0000)
committerKim F. Storm <storm@cua.dk>
Sun, 16 Nov 2003 23:44:22 +0000 (23:44 +0000)
(try_window_id): Use first_vpos to start display in first _text_
line if no reusable lines at start of window with header line.

src/xdisp.c

index 8b026fefa9e64f1c5468841d9b6b3c451afa5f16..4a32cea2b6ec53d3243cbccbcb0b747d66452efe 100644 (file)
@@ -2201,6 +2201,7 @@ start_display (it, w, pos)
 
   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 @@ try_window_id (w)
   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;
     }