mirror of
https://github.com/tmux/tmux.git
synced 2026-06-22 07:46:59 +00:00
Fix position of pane status line.
This commit is contained in:
@@ -501,7 +501,7 @@ screen_redraw_mark_border_cell(struct redraw_build_ctx *bctx, int wx, int wy,
|
|||||||
/* Mark area available for pane status line. */
|
/* Mark area available for pane status line. */
|
||||||
static void
|
static void
|
||||||
screen_redraw_mark_border_status(struct redraw_build_ctx *bctx,
|
screen_redraw_mark_border_status(struct redraw_build_ctx *bctx,
|
||||||
struct window_pane *wp, int left, int right, int top, int bottom)
|
struct window_pane *wp, __unused int left, int right, int top, int bottom)
|
||||||
{
|
{
|
||||||
struct redraw_build_cell *bc;
|
struct redraw_build_cell *bc;
|
||||||
u_int x, y, off = 0;
|
u_int x, y, off = 0;
|
||||||
@@ -515,13 +515,8 @@ screen_redraw_mark_border_status(struct redraw_build_ctx *bctx,
|
|||||||
else
|
else
|
||||||
wy = bottom;
|
wy = bottom;
|
||||||
|
|
||||||
sx = left + 1;
|
sx = wp->xoff + 2;
|
||||||
ex = right - 1;
|
ex = right - 1;
|
||||||
if (bctx->ind == PANE_BORDER_ARROWS || bctx->ind == PANE_BORDER_BOTH) {
|
|
||||||
wx = wp->xoff + 1;
|
|
||||||
if (wx >= sx && wx <= ex)
|
|
||||||
sx = wx + 1;
|
|
||||||
}
|
|
||||||
if (sx > ex)
|
if (sx > ex)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user