diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-10 17:52:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-10 17:52:51 +0000 |
commit | f1ce95915c612ef3b429dc7d2f635b5758b27669 (patch) | |
tree | 4151a79b448c88fb48972a8466f7d19bfd1cbf28 /window-choose.c | |
parent | aadc87f5a79865f404f4b6cb0f4892daa17e7365 (diff) | |
download | rtmux-f1ce95915c612ef3b429dc7d2f635b5758b27669.tar.gz rtmux-f1ce95915c612ef3b429dc7d2f635b5758b27669.tar.bz2 rtmux-f1ce95915c612ef3b429dc7d2f635b5758b27669.zip |
Allow choose commands to be used outside tmux, so long as at least one client
is attached.
Diffstat (limited to 'window-choose.c')
-rw-r--r-- | window-choose.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/window-choose.c b/window-choose.c index 21d6aec7..d461887a 100644 --- a/window-choose.c +++ b/window-choose.c @@ -863,11 +863,10 @@ window_choose_scroll_down(struct window_pane *wp) } struct window_choose_data * -window_choose_add_session(struct window_pane *wp, struct cmd_ctx *ctx, +window_choose_add_session(struct window_pane *wp, struct client *c, struct session *s, const char *template, char *action, u_int idx) { struct window_choose_data *wcd; - struct client *c = ctx->curclient; wcd = window_choose_data_create(TREE_SESSION, c, c->session); wcd->idx = s->idx; @@ -887,11 +886,10 @@ window_choose_add_session(struct window_pane *wp, struct cmd_ctx *ctx, } struct window_choose_data * -window_choose_add_item(struct window_pane *wp, struct cmd_ctx *ctx, +window_choose_add_item(struct window_pane *wp, struct client *c, struct winlink *wl, const char *template, char *action, u_int idx) { struct window_choose_data *wcd; - struct client *c = ctx->curclient; char *expanded; wcd = window_choose_data_create(TREE_OTHER, c, c->session); @@ -918,12 +916,11 @@ window_choose_add_item(struct window_pane *wp, struct cmd_ctx *ctx, } struct window_choose_data * -window_choose_add_window(struct window_pane *wp, struct cmd_ctx *ctx, +window_choose_add_window(struct window_pane *wp, struct client *c, struct session *s, struct winlink *wl, const char *template, char *action, u_int idx) { struct window_choose_data *wcd; - struct client *c = ctx->curclient; char *expanded; wcd = window_choose_data_create(TREE_WINDOW, c, c->session); |