* src/window.c (coordinates_in_window): Fix conditions for
coordinates being on the window's header line when that
window also displays a tab-line. (Bug#37807)
&& y < top_y + CURRENT_TAB_LINE_HEIGHT (w)
&& (part = ON_TAB_LINE))
|| (window_wants_header_line (w)
- && y < top_y + CURRENT_TAB_LINE_HEIGHT (w)
- + CURRENT_HEADER_LINE_HEIGHT (w)
+ && y < top_y + CURRENT_HEADER_LINE_HEIGHT (w)
+ + (window_wants_tab_line (w)
+ ? CURRENT_TAB_LINE_HEIGHT (w)
+ : 0)
&& (part = ON_HEADER_LINE)))
{
/* If it's under/over the scroll bar portion of the mode/header