diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-25 10:12:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-25 10:12:02 +0000 |
commit | 95ac9d7c921d6a6d987c2b5f8f027a76482ec214 (patch) | |
tree | dd2eb715241f62b6fb62b5e35886446ab8993225 /usr.bin | |
parent | 3653a2e36a504474dad85bc44af6575646344ad0 (diff) |
Do not redraw panes if invisible.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/screen-redraw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/screen-redraw.c b/usr.bin/tmux/screen-redraw.c index ac0e73544f2..d917b132e1f 100644 --- a/usr.bin/tmux/screen-redraw.c +++ b/usr.bin/tmux/screen-redraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-redraw.c,v 1.22 2012/05/23 19:19:40 nicm Exp $ */ +/* $OpenBSD: screen-redraw.c,v 1.23 2013/03/25 10:12:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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++; |