diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-11-15 06:52:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-11-15 06:52:12 +0000 |
commit | 0cc87acc67e6c732e1450bc9fcb144cd9f95e4ec (patch) | |
tree | 517e2e2d470fc86784d7556bc478169fdec7eed2 /usr.bin/tmux/cmd-list-windows.c | |
parent | 99d1535a2704232d35d869ca7ce11aed2cbb95e0 (diff) |
Show more window and pane flags in list-* output, and put layout on the
same line.
Diffstat (limited to 'usr.bin/tmux/cmd-list-windows.c')
-rw-r--r-- | usr.bin/tmux/cmd-list-windows.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-list-windows.c b/usr.bin/tmux/cmd-list-windows.c index 72f7d7b431d..231f1a084a4 100644 --- a/usr.bin/tmux/cmd-list-windows.c +++ b/usr.bin/tmux/cmd-list-windows.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-windows.c,v 1.9 2010/06/29 03:30:13 nicm Exp $ */ +/* $OpenBSD: cmd-list-windows.c,v 1.10 2010/11/15 06:52:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -51,10 +51,10 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx) return (-1); RB_FOREACH(wl, winlinks, &s->windows) { - ctx->print(ctx, "%d: %s [%ux%u]", - wl->idx, wl->window->name, wl->window->sx, wl->window->sy); layout = layout_dump(wl->window); - ctx->print(ctx, " layout: %s", layout); + ctx->print(ctx, "%d: %s [%ux%u] [layout %s]%s", + wl->idx, wl->window->name, wl->window->sx, wl->window->sy, + layout, wl == s->curw ? " (active)" : ""); xfree(layout); } |