aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-06-27 12:01:18 +0100
committerThomas Adam <thomas@xteddy.org>2020-06-27 12:01:18 +0100
commit332aca754b96ae5f5f5dd0bb32e3d008ac735684 (patch)
tree3439e54a45fbf734ce0fce26fae9b41639437ccf /screen-redraw.c
parent04a1a84bb8d3b34400b63ca9193faf405e5728d1 (diff)
parentb6aeb86c20abca3b88722da15747755f8a7690f7 (diff)
downloadrtmux-332aca754b96ae5f5f5dd0bb32e3d008ac735684.tar.gz
rtmux-332aca754b96ae5f5f5dd0bb32e3d008ac735684.tar.bz2
rtmux-332aca754b96ae5f5f5dd0bb32e3d008ac735684.zip
Merge branch 'obsd-master'
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 258c2fd2..3391a891 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -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;
}
/*