From 2a609b332f6cdc2ef6f3ffb525a3c74ada738ec4 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 25 Oct 2012 11:26:47 +0000 Subject: [PATCH] Add ability to active pane in list-windows and find-window formats, from Carl Henrik Lunde. --- cmd-find-window.c | 1 + cmd-list-windows.c | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd-find-window.c b/cmd-find-window.c index 340f6e1a..f2b20ae7 100644 --- a/cmd-find-window.c +++ b/cmd-find-window.c @@ -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/cmd-list-windows.c b/cmd-list-windows.c index 146d29aa..0485e4a3 100644 --- a/cmd-list-windows.c +++ b/cmd-list-windows.c @@ -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);