diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-09-03 12:24:25 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-09-03 12:24:25 +0000 |
commit | 4f8a6867faa24dfc381a79384c22c0ec7280ccab (patch) | |
tree | e7aa9da7523e7e822d2b16f8a7513ea22da0950a /cmd-choose-tree.c | |
parent | 9e7bbc7281a3b0be63a0c6fa777fc413b668629c (diff) | |
download | rtmux-4f8a6867faa24dfc381a79384c22c0ec7280ccab.tar.gz rtmux-4f8a6867faa24dfc381a79384c22c0ec7280ccab.tar.bz2 rtmux-4f8a6867faa24dfc381a79384c22c0ec7280ccab.zip |
Use the right index when adding item in choose-tree, from Thomas Adam.
Diffstat (limited to 'cmd-choose-tree.c')
-rw-r--r-- | cmd-choose-tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-choose-tree.c b/cmd-choose-tree.c index 45cb6dad..f1533ac0 100644 --- a/cmd-choose-tree.c +++ b/cmd-choose-tree.c @@ -212,7 +212,8 @@ windows_only: window_choose_add_window(wl->window->active, ctx, s2, wm, cur_win_template, - final_win_action, idx_ses); + final_win_action, + (wflag && !sflag) ? win_ses : idx_ses); free(final_win_action); } |