diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-08-11 07:27:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-08-11 07:27:50 +0000 |
commit | 933dc48de356e387c0c027e654e1ae5f2f24c711 (patch) | |
tree | bd53e73e7c3f00a0a6b6af697f3f5c767230d629 | |
parent | 4274a7ec89fbf2a0f8417f97d37f8cc8c5e3e156 (diff) | |
download | rtmux-933dc48de356e387c0c027e654e1ae5f2f24c711.tar.gz rtmux-933dc48de356e387c0c027e654e1ae5f2f24c711.tar.bz2 rtmux-933dc48de356e387c0c027e654e1ae5f2f24c711.zip |
Show which pane is active in the list-panes output, suggested by Dominik
Honnef.
-rw-r--r-- | cmd-list-panes.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd-list-panes.c b/cmd-list-panes.c index ffb89787..ba70faa1 100644 --- a/cmd-list-panes.c +++ b/cmd-list-panes.c @@ -65,8 +65,9 @@ cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx) } size += gd->hsize * sizeof *gd->linedata; - ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes]", - n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size); + ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes]%s", + n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size, + wp == wp->window->active ? " (active)" : ""); n++; } |