diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-02-06 19:05:56 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-02-06 19:07:43 +0000 |
commit | 833fe5bdee449b04afe8844774be66374e1baf9c (patch) | |
tree | 11b21f479421b08f67776c832543becaa0b12fb8 /window-choose.c | |
parent | 93c3fb78a3593afd23e85352213236131dd5958f (diff) | |
parent | 313f2263f8bb3336893527f65789f820ba7eaf0f (diff) | |
download | rtmux-833fe5bdee449b04afe8844774be66374e1baf9c.tar.gz rtmux-833fe5bdee449b04afe8844774be66374e1baf9c.tar.bz2 rtmux-833fe5bdee449b04afe8844774be66374e1baf9c.zip |
Merge branch 'obsd-master'
Conflicts:
cmd-pipe-pane.c
Diffstat (limited to 'window-choose.c')
-rw-r--r-- | window-choose.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/window-choose.c b/window-choose.c index 0d724746..69141676 100644 --- a/window-choose.c +++ b/window-choose.c @@ -919,7 +919,7 @@ window_choose_add_session(struct window_pane *wp, struct client *c, wcd->ft_template = xstrdup(template); format_add(wcd->ft, "line", "%u", idx); - format_session(wcd->ft, s); + format_defaults(wcd->ft, NULL, s, NULL, NULL); wcd->command = cmd_template_replace(action, s->name, 1); @@ -946,9 +946,7 @@ window_choose_add_window(struct window_pane *wp, struct client *c, wcd->ft_template = xstrdup(template); format_add(wcd->ft, "line", "%u", idx); - format_session(wcd->ft, s); - format_winlink(wcd->ft, s, wl); - format_window_pane(wcd->ft, wl->window->active); + format_defaults(wcd->ft, NULL, s, wl, NULL); xasprintf(&expanded, "%s:%d", s->name, wl->idx); wcd->command = cmd_template_replace(action, expanded, 1); |