=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-select-pane.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/tmux/cmd-select-pane.c 2009/07/13 23:11:35 1.2 --- src/usr.bin/tmux/cmd-select-pane.c 2009/07/14 07:23:36 1.3 *************** *** 1,4 **** ! /* $OpenBSD: cmd-select-pane.c,v 1.2 2009/07/13 23:11:35 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-select-pane.c,v 1.3 2009/07/14 07:23:36 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 58,65 **** } } ! if (wp->flags & PANE_HIDDEN) { ! ctx->error(ctx, "pane %d is hidden", data->pane); return (-1); } window_set_active_pane(wl->window, wp); --- 58,65 ---- } } ! if (!window_pane_visible(wp)) { ! ctx->error(ctx, "pane %d is not visible", data->pane); return (-1); } window_set_active_pane(wl->window, wp);