mirror of
https://github.com/tmux/tmux.git
synced 2025-12-17 00:02:23 -05:00
Use correct style for bottom line when pane status line is on, GitHub
issue 4732.
This commit is contained in:
parent
f58b8d0d6a
commit
afa05ae15e
@ -197,9 +197,11 @@ screen_redraw_pane_border(struct screen_redraw_ctx *ctx, struct window_pane *wp,
|
|||||||
} else { /* sb_pos == PANE_SCROLLBARS_RIGHT */
|
} else { /* sb_pos == PANE_SCROLLBARS_RIGHT */
|
||||||
if ((wp->xoff == 0 || px >= wp->xoff) &&
|
if ((wp->xoff == 0 || px >= wp->xoff) &&
|
||||||
(px <= ex || (sb_w != 0 && px < ex + sb_w))) {
|
(px <= ex || (sb_w != 0 && px < ex + sb_w))) {
|
||||||
if (wp->yoff != 0 && py == wp->yoff - 1)
|
if (pane_status != PANE_STATUS_BOTTOM &&
|
||||||
|
wp->yoff != 0 &&
|
||||||
|
py == wp->yoff - 1)
|
||||||
return (SCREEN_REDRAW_BORDER_TOP);
|
return (SCREEN_REDRAW_BORDER_TOP);
|
||||||
if (py == ey)
|
if (pane_status != PANE_STATUS_TOP && py == ey)
|
||||||
return (SCREEN_REDRAW_BORDER_BOTTOM);
|
return (SCREEN_REDRAW_BORDER_BOTTOM);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -380,7 +382,6 @@ screen_redraw_check_cell(struct screen_redraw_ctx *ctx, u_int px, u_int py,
|
|||||||
|
|
||||||
/* Check if CELL_SCROLLBAR */
|
/* Check if CELL_SCROLLBAR */
|
||||||
if (window_pane_show_scrollbar(wp, pane_scrollbars)) {
|
if (window_pane_show_scrollbar(wp, pane_scrollbars)) {
|
||||||
|
|
||||||
if (pane_status == PANE_STATUS_TOP)
|
if (pane_status == PANE_STATUS_TOP)
|
||||||
line = wp->yoff - 1;
|
line = wp->yoff - 1;
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user