diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-14 19:29:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-14 19:29:32 +0000 |
commit | b4ac8c1342184d6a81985704c154f3a3e744fffd (patch) | |
tree | 8123c107b14d67631bfda6ca0dd94e261f3b1dc0 /cmd-list-windows.c | |
parent | e02496f073886eed4b1f83db0c4eb65cce4c54ec (diff) |
Multiple window splitting.
Diffstat (limited to 'cmd-list-windows.c')
-rw-r--r-- | cmd-list-windows.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cmd-list-windows.c b/cmd-list-windows.c index 66360f65..ef740a22 100644 --- a/cmd-list-windows.c +++ b/cmd-list-windows.c @@ -1,4 +1,4 @@ -/* $Id: cmd-list-windows.c,v 1.27 2009-01-12 18:22:47 nicm Exp $ */ +/* $Id: cmd-list-windows.c,v 1.28 2009-01-14 19:29:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -62,10 +62,7 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx) ctx->print(ctx, "%d: %s [%ux%u]", wl->idx, w->name, w->sx, w->sy); - for (i = 0; i < 2; i++) { - wp = w->panes[i]; - if (wp == NULL) - continue; + TAILQ_FOREACH(wp, &w->panes, entry) { gd = wp->base.grid; size = 0; @@ -79,9 +76,9 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx) else name = ""; - ctx->print(ctx, " pane %d:" - " %s [%ux%u] [history %u/%u, %llu bytes]", i, name, - wp->sx, wp->sy, gd->hsize, gd->hlimit, size); + ctx->print(ctx, + " %s [%ux%u] [history %u/%u, %llu bytes]", i, + name, wp->sx, wp->sy, gd->hsize, gd->hlimit, size); } } |