Use the right index when adding item in choose-tree, from Thomas Adam.

This commit is contained in:
Nicholas Marriott 2012-09-03 12:24:25 +00:00
parent 9e7bbc7281
commit 4f8a6867fa

View File

@ -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);
}