diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-10-25 11:26:48 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-10-25 11:26:48 +0000 |
commit | 3e48535481b02b6e40f7c1823c9e1150918aa2c1 (patch) | |
tree | 8808c56fc7ce5c5454ebdb95cef07f07893cba43 /usr.bin/tmux | |
parent | 45786641db8625eeb0e3da4846588551a0fd1c8e (diff) |
Add ability to active pane in list-windows and find-window formats, from
Carl Henrik Lunde.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/cmd-find-window.c | 3 | ||||
-rw-r--r-- | usr.bin/tmux/cmd-list-windows.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-find-window.c b/usr.bin/tmux/cmd-find-window.c index 2ac1648eee3..2c73753cda5 100644 --- a/usr.bin/tmux/cmd-find-window.c +++ b/usr.bin/tmux/cmd-find-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-find-window.c,v 1.19 2012/09/03 12:20:17 nicm Exp $ */ +/* $OpenBSD: cmd-find-window.c,v 1.20 2012/10/25 11:26:47 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -193,6 +193,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_ctx *ctx) ARRAY_ITEM(&find_list, i).list_ctx); format_session(cdata->ft, s); format_winlink(cdata->ft, s, wm); + format_window_pane(cdata->ft, wm->window->active); window_choose_add(wl->window->active, cdata); } diff --git a/usr.bin/tmux/cmd-list-windows.c b/usr.bin/tmux/cmd-list-windows.c index 2848faa07a9..2882b2b742e 100644 --- a/usr.bin/tmux/cmd-list-windows.c +++ b/usr.bin/tmux/cmd-list-windows.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-windows.c,v 1.24 2012/08/14 08:51:53 nicm Exp $ */ +/* $OpenBSD: cmd-list-windows.c,v 1.25 2012/10/25 11:26:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -99,6 +99,7 @@ cmd_list_windows_session( format_add(ft, "line", "%u", n); format_session(ft, s); format_winlink(ft, s, wl); + format_window_pane(ft, wl->window->active); line = format_expand(ft, template); ctx->print(ctx, "%s", line); |