From: Po Lu Date: Mon, 18 Apr 2022 07:55:40 +0000 (+0800) Subject: Clarify computation of header line vpos X-Git-Tag: emacs-29.0.90~1931^2~437 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=96b21b8da10e4e31981e8a6874411ab184259fa4;p=emacs.git Clarify computation of header line vpos * 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 . --- diff --git a/src/dispnew.c b/src/dispnew.c index 3cfe1b86f6a..2aba0edfe8f 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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);