diff options
author | 2020-06-27 10:23:10 +0000 | |
---|---|---|
committer | 2020-06-27 10:23:10 +0000 | |
commit | b4edb00951e840d3dfb783add3bd9d85fda2b461 (patch) | |
tree | 0183fc54f4eb2ccb0719bed7106bbe4c19b289c4 | |
parent | Fix 0x Unicode character parsing, GitHub issue 2286. (diff) | |
download | wireguard-openbsd-b4edb00951e840d3dfb783add3bd9d85fda2b461.tar.xz wireguard-openbsd-b4edb00951e840d3dfb783add3bd9d85fda2b461.zip |
Check for no pane border status line separately from top/bottom.
-rw-r--r-- | usr.bin/tmux/screen-redraw.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-redraw.c b/usr.bin/tmux/screen-redraw.c index e1564e07846..aad403ef924 100644 --- a/usr.bin/tmux/screen-redraw.c +++ b/usr.bin/tmux/screen-redraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-redraw.c,v 1.79 2020/06/23 14:10:43 nicm Exp $ */ +/* $OpenBSD: screen-redraw.c,v 1.80 2020/06/27 10:23:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -271,13 +271,19 @@ screen_redraw_type_of_cell(struct client *c, u_int px, u_int py, borders |= 2; if (screen_redraw_cell_border(c, px, py + 1, pane_status)) borders |= 1; - } else { + } else if (pane_status == PANE_STATUS_BOTTOM) { if (py == 0 || screen_redraw_cell_border(c, px, py - 1, pane_status)) borders |= 2; if (py != sy - 1 && screen_redraw_cell_border(c, px, py + 1, pane_status)) borders |= 1; + } else { + if (py == 0 || + screen_redraw_cell_border(c, px, py - 1, pane_status)) + borders |= 2; + if (screen_redraw_cell_border(c, px, py + 1, pane_status)) + borders |= 1; } /* |