summaryrefslogtreecommitdiffstats
path: root/cmd-list-panes.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-03-27 20:27:26 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-03-27 20:27:26 +0000
commit808502ac3d86193d9a371728b2ea2055100c76c3 (patch)
tree18ba306e7e15c1a0a04108bc139a0938cd4ce96e /cmd-list-panes.c
parentd74e5bffbad33df742749b5983479dc2cfac273b (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-list-panes.c b/cmd-list-panes.c
index 03fd7afd..e58fd671 100644
--- a/cmd-list-panes.c
+++ b/cmd-list-panes.c
@@ -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++;