summaryrefslogtreecommitdiffstats
path: root/cmd-choose-tree.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-09-03 12:24:25 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-09-03 12:24:25 +0000
commit4f8a6867faa24dfc381a79384c22c0ec7280ccab (patch)
treee7aa9da7523e7e822d2b16f8a7513ea22da0950a /cmd-choose-tree.c
parent9e7bbc7281a3b0be63a0c6fa777fc413b668629c (diff)
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.c3
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);
}