diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2011-04-06 22:16:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2011-04-06 22:16:33 +0000 |
commit | 536fc24653d51daf8f0015e68dd4191a9a989205 (patch) | |
tree | bf2c81cf3f126bd8f26e395d0a8305460d2844ea /cmd-list-panes.c | |
parent | 95832241aa6b1af0bc3bc09fad33462f807e59a3 (diff) | |
download | rtmux-536fc24653d51daf8f0015e68dd4191a9a989205.tar.gz rtmux-536fc24653d51daf8f0015e68dd4191a9a989205.tar.bz2 rtmux-536fc24653d51daf8f0015e68dd4191a9a989205.zip |
PatchSet 870
Date: 2011/03/27 21:27:26
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Give each pane created in a tmux server a unique id (starting from 0),
put it in the TMUX_PANE environment variable and accept it as a
target. Suggested by and with testing and tweaks from Ben Boeckel.
Diffstat (limited to 'cmd-list-panes.c')
-rw-r--r-- | cmd-list-panes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-list-panes.c b/cmd-list-panes.c index 8533b624..863182ff 100644 --- a/cmd-list-panes.c +++ b/cmd-list-panes.c @@ -1,4 +1,4 @@ -/* $Id: cmd-list-panes.c,v 1.7 2011-01-07 14:45:34 tcunha Exp $ */ +/* $Id: cmd-list-panes.c,v 1.8 2011-04-06 22:16:33 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -64,8 +64,8 @@ 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]%s%s", - n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size, + ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes] %%%u%s%s", + n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size, wp->id, wp == wp->window->active ? " (active)" : "", wp->fd == -1 ? " (dead)" : ""); n++; |