summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-list-panes.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-11-15 23:21:53 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-11-15 23:21:53 +0000
commitd02f3d6cd1813b6f4e6b1df20d109d4b69e08c96 (patch)
treeb7a6723343af3d2b29301137710a298409ae88cb /usr.bin/tmux/cmd-list-panes.c
parent602f7427acffff822aef52008f38d3af8430a91b (diff)
Add a pane_index format string and use it, from Ben Boeckel.
Diffstat (limited to 'usr.bin/tmux/cmd-list-panes.c')
-rw-r--r--usr.bin/tmux/cmd-list-panes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-list-panes.c b/usr.bin/tmux/cmd-list-panes.c
index 7b7e06dedec..10ffd86234d 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.12 2011/08/26 10:53:16 nicm Exp $ */
+/* $OpenBSD: cmd-list-panes.c,v 1.13 2011/11/15 23:21:52 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -102,21 +102,21 @@ cmd_list_panes_window(struct cmd *self,
if (template == NULL) {
switch (type) {
case 0:
- template = "#{line}: "
+ template = "#{pane_index}: "
"[#{pane_width}x#{pane_height}] [history "
"#{history_size}/#{history_limit}, "
"#{history_bytes} bytes] #{pane_id}"
"#{?pane_active, (active),}#{?pane_dead, (dead),}";
break;
case 1:
- template = "#{window_index}.#{line}: "
+ template = "#{window_index}.#{pane_index}: "
"[#{pane_width}x#{pane_height}] [history "
"#{history_size}/#{history_limit}, "
"#{history_bytes} bytes] #{pane_id}"
"#{?pane_active, (active),}#{?pane_dead, (dead),}";
break;
case 2:
- template = "#{session_name}:#{window_index}.#{line}: "
+ template = "#{session_name}:#{window_index}.#{pane_index}: "
"[#{pane_width}x#{pane_height}] [history "
"#{history_size}/#{history_limit}, "
"#{history_bytes} bytes] #{pane_id}"