aboutsummaryrefslogtreecommitdiff
path: root/cmd-up-pane.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-up-pane.c')
-rw-r--r--cmd-up-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-up-pane.c b/cmd-up-pane.c
index ec532370..2f092ece 100644
--- a/cmd-up-pane.c
+++ b/cmd-up-pane.c
@@ -55,7 +55,7 @@ cmd_up_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
if (w->active == NULL)
w->active = TAILQ_LAST(&w->panes, window_panes);
layout_refresh(w, 1);
- } while (w->active->flags & PANE_HIDDEN);
+ } while (!window_pane_visible(w->active));
return (0);
}