summaryrefslogtreecommitdiffstats
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-03-09 17:29:22 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-03-09 17:29:22 +0000
commitdde5d49a5ed305cfa32f18c08d6f1b769d8ccef7 (patch)
tree6e2dc71d3d9481df568c5e1b004fe40be2acf36d /screen-redraw.c
parent89d3f13945fb790b97f25824009f1424d0934009 (diff)
Do not redraw panes if invisible.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 899f741b..14b73164 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++;