diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:42:44 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:42:44 +0000 |
commit | 1e574bb70c2770fe5886fd7327966dfc543e3939 (patch) | |
tree | 21daf5e0c06f69035a1b2c43fe2a9d12e41c868f /cmd-up-pane.c | |
parent | 537c32b6b61d93b3489fee9cea26cd808125e265 (diff) |
Get rid of the PANE_HIDDEN flag in favour of a function, and moving the
decision for whether or not a pane should be drawn out of the layout code and
into the redraw code.
This is needed for the new layout design, getting it in now to make that easier
to work on.
Diffstat (limited to 'cmd-up-pane.c')
-rw-r--r-- | cmd-up-pane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-up-pane.c b/cmd-up-pane.c index 5273f8ed..fb5828b6 100644 --- a/cmd-up-pane.c +++ b/cmd-up-pane.c @@ -1,4 +1,4 @@ -/* $Id: cmd-up-pane.c,v 1.8 2009-07-14 06:43:33 nicm Exp $ */ +/* $Id: cmd-up-pane.c,v 1.9 2009-07-15 17:42:43 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); } |