=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/server-client.c,v retrieving revision 1.133 retrieving revision 1.134 diff -c -r1.133 -r1.134 *** src/usr.bin/tmux/server-client.c 2015/04/21 15:21:41 1.133 --- src/usr.bin/tmux/server-client.c 2015/04/22 15:30:11 1.134 *************** *** 1,4 **** ! /* $OpenBSD: server-client.c,v 1.133 2015/04/21 15:21:41 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: server-client.c,v 1.134 2015/04/22 15:30:11 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 720,730 **** * Any windows will have been redrawn as part of clients, so clear * their flags now. Also check pane focus and resize. */ ! for (i = 0; i < ARRAY_LENGTH(&windows); i++) { ! w = ARRAY_ITEM(&windows, i); ! if (w == NULL) ! continue; ! w->flags &= ~WINDOW_REDRAW; TAILQ_FOREACH(wp, &w->panes, entry) { if (wp->fd != -1) { --- 720,726 ---- * Any windows will have been redrawn as part of clients, so clear * their flags now. Also check pane focus and resize. */ ! RB_FOREACH(w, windows, &windows) { w->flags &= ~WINDOW_REDRAW; TAILQ_FOREACH(wp, &w->panes, entry) { if (wp->fd != -1) {