From ff42cf8d1f9b75d5a9989c004f7feff56bf8f84c Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 11 Aug 2010 07:27:50 +0000 Subject: Show which pane is active in the list-panes output, suggested by Dominik Honnef. --- usr.bin/tmux/cmd-list-panes.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin/tmux/cmd-list-panes.c') diff --git a/usr.bin/tmux/cmd-list-panes.c b/usr.bin/tmux/cmd-list-panes.c index 92ea39d69b0..51e7036aa3e 100644 --- a/usr.bin/tmux/cmd-list-panes.c +++ b/usr.bin/tmux/cmd-list-panes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-panes.c,v 1.4 2009/12/03 22:50:10 nicm Exp $ */ +/* $OpenBSD: cmd-list-panes.c,v 1.5 2010/08/11 07:27:50 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -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++; } -- cgit v1.2.3-59-g8ed1b