From 91bc6836f7f4c5a983b12be233a279d7dfd4ec99 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 1 Apr 2009 21:10:08 +0000 Subject: - Allow switching to hidden windows (for active-only layout). - Don't update unnecessarily for other layouts when changing active pane doesn't matter. --- cmd-up-pane.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd-up-pane.c') diff --git a/cmd-up-pane.c b/cmd-up-pane.c index c9b45030..0b14fe24 100644 --- a/cmd-up-pane.c +++ b/cmd-up-pane.c @@ -1,4 +1,4 @@ -/* $Id: cmd-up-pane.c,v 1.6 2009-04-01 18:33:19 nicm Exp $ */ +/* $Id: cmd-up-pane.c,v 1.7 2009-04-01 21:10:08 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -54,6 +54,7 @@ cmd_up_pane_exec(struct cmd *self, struct cmd_ctx *ctx) w->active = TAILQ_PREV(w->active, window_panes, entry); if (w->active == NULL) w->active = TAILQ_LAST(&w->panes, window_panes); + layout_refresh(w, 1); } while (w->active->flags & PANE_HIDDEN); return (0); -- cgit