summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-25 10:12:01 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-25 10:12:01 +0000
commit446fb0cb9cd8e664639a204023b2e09f5f6aa6fb (patch)
treec788885233f4ae327c3884a70162fbc8c38d3e3a
parent6fee3e9e4b4c68c5d3d7f333c779ac865af7bf86 (diff)
Do not redraw panes if invisible.
-rw-r--r--screen-redraw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 8cc448a2..0d1d53da 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -273,6 +273,9 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
{
u_int i, yoff;
+ if (!window_pane_visible(wp))
+ return;
+
yoff = wp->yoff;
if (status_at_line(c) == 0)
yoff++;