aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-09-03 12:24:25 +0000
committerThomas Adam <thomas@xteddy.org>2012-09-04 22:37:31 +0100
commita1cd0eee1b40a94b95f56f4bcd143603e7814578 (patch)
treeaddaab0282af7945df5f16bb227b3d6d3248d4ed
parentc914fcfacbfb7b88138bfe6bcf7d918fce535680 (diff)
downloadrtmux-a1cd0eee1b40a94b95f56f4bcd143603e7814578.tar.gz
rtmux-a1cd0eee1b40a94b95f56f4bcd143603e7814578.tar.bz2
rtmux-a1cd0eee1b40a94b95f56f4bcd143603e7814578.zip
Use the right index when adding item in choose-tree, from Thomas Adam.
-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 e592e7d9..dd6dd3b3 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);
}