Add ability to active pane in list-windows and find-window formats, from

Carl Henrik Lunde.
This commit is contained in:
Nicholas Marriott 2012-10-25 11:26:47 +00:00
parent 18236c1c1b
commit 2a609b332f
2 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_ctx *ctx)
ARRAY_ITEM(&find_list, i).list_ctx); ARRAY_ITEM(&find_list, i).list_ctx);
format_session(cdata->ft, s); format_session(cdata->ft, s);
format_winlink(cdata->ft, s, wm); format_winlink(cdata->ft, s, wm);
format_window_pane(cdata->ft, wm->window->active);
window_choose_add(wl->window->active, cdata); window_choose_add(wl->window->active, cdata);
} }

View File

@ -99,6 +99,7 @@ cmd_list_windows_session(
format_add(ft, "line", "%u", n); format_add(ft, "line", "%u", n);
format_session(ft, s); format_session(ft, s);
format_winlink(ft, s, wl); format_winlink(ft, s, wl);
format_window_pane(ft, wl->window->active);
line = format_expand(ft, template); line = format_expand(ft, template);
ctx->print(ctx, "%s", line); ctx->print(ctx, "%s", line);