diff options
author | Po Lu <luangruo@yahoo.com> | 2022-04-18 15:55:40 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-04-18 16:01:44 +0800 |
commit | 96b21b8da10e4e31981e8a6874411ab184259fa4 (patch) | |
tree | 9959b4682c4e605fcbd8cfdc195b9ac1ce8e007c /src/dispnew.c | |
parent | 2363366862d0ed7334aff38ebcd5f02d26e33402 (diff) | |
download | emacs-96b21b8da10e4e31981e8a6874411ab184259fa4.tar.gz |
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 <eliz@gnu.org>.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |