]> git.eshelyaron.com Git - emacs.git/commitdiff
Clarify computation of header line vpos
authorPo Lu <luangruo@yahoo.com>
Mon, 18 Apr 2022 07:55:40 +0000 (15:55 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 18 Apr 2022 08:01:44 +0000 (16:01 +0800)
* src/dispnew.c (update_text_area): Test vpos is more than 1
only if is both a tab and header line.  Reported by Eli
Zaretskii <eliz@gnu.org>.

src/dispnew.c

index 3cfe1b86f6a70913b733b242bb2ec7d839547852..2aba0edfe8ff40533f9b7e7354c37bb0f795eb44 100644 (file)
@@ -3933,7 +3933,8 @@ update_text_area (struct window *w, struct glyph_row *updated_row, int vpos)
          Apr 2022) */
       || (current_row->mouse_face_p
          && !(current_row->mode_line_p
-              && (vpos > w->current_matrix->tab_line_p)))
+              && (vpos > (w->current_matrix->tab_line_p
+                          && w->current_matrix->header_line_p))))
       || current_row->x != desired_row->x)
     {
       output_cursor_to (w, vpos, 0, desired_row->y, desired_row->x);