aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2018-08-25 13:55:50 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2018-08-25 13:55:50 +0100
commit7fbd2f5498f30383d145653fe5d1e542fbd6ad43 (patch)
treeb1b727eb9268649b55e213ebe347492aed7fda88 /tty.c
parent45841400f2e5de5c61e415a3cf83339dfa387adb (diff)
downloadrtmux-7fbd2f5498f30383d145653fe5d1e542fbd6ad43.tar.gz
rtmux-7fbd2f5498f30383d145653fe5d1e542fbd6ad43.tar.bz2
rtmux-7fbd2f5498f30383d145653fe5d1e542fbd6ad43.zip
Do not draw cells which have no cell (zoomed and they are not active).
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index a6cfadf9..495366e4 100644
--- a/tty.c
+++ b/tty.c
@@ -1330,6 +1330,8 @@ tty_client_ready(struct client *c, struct window_pane *wp)
return (0);
if (c->session->curw->window != wp->window)
return (0);
+ if (wp->layout_cell == NULL)
+ return (0);
return (1);
}