diff options
author | nicm <nicm> | 2020-06-27 10:23:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-06-29 09:20:39 +0100 |
commit | 629ba1b83892ad373dd5b88268969d4cde857f22 (patch) | |
tree | 6be188bb0e679afbd036f83e7ed736846c289222 | |
parent | c9b4d5a4a5c98d9d0a074800b5291d3c8b02f4b1 (diff) | |
download | rtmux-629ba1b83892ad373dd5b88268969d4cde857f22.tar.gz rtmux-629ba1b83892ad373dd5b88268969d4cde857f22.tar.bz2 rtmux-629ba1b83892ad373dd5b88268969d4cde857f22.zip |
Check for no pane border status line separately from top/bottom.
-rw-r--r-- | screen-redraw.c | 8 |
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; } /* |