diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-08-11 22:14:23 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-08-11 22:14:23 +0000 |
commit | 5e9429e2d6eb2b6da947cb8e26ee2369a0e110e2 (patch) | |
tree | 6e282d9c9a83ba03e2b155055806d89375ce878e | |
parent | 4387db506f558ec30bdbbd9b57b4c9f04c366e4f (diff) | |
download | rtmux-5e9429e2d6eb2b6da947cb8e26ee2369a0e110e2.tar.gz rtmux-5e9429e2d6eb2b6da947cb8e26ee2369a0e110e2.tar.bz2 rtmux-5e9429e2d6eb2b6da947cb8e26ee2369a0e110e2.zip |
Sync OpenBSD patchset 744:
Show which pane is active in the list-panes output, suggested by Dominik
Honnef.
-rw-r--r-- | cmd-list-panes.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-list-panes.c b/cmd-list-panes.c index a075cf38..2399263f 100644 --- a/cmd-list-panes.c +++ b/cmd-list-panes.c @@ -1,4 +1,4 @@ -/* $Id: cmd-list-panes.c,v 1.4 2009-12-04 22:14:47 tcunha Exp $ */ +/* $Id: cmd-list-panes.c,v 1.5 2010-08-11 22:14:23 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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++; } |