When using choose-tree -u, start with the current window

highlighted. From Thomas Adam.
This commit is contained in:
Nicholas Marriott
2013-04-22 22:17:29 +00:00
parent 04f54ab38f
commit 3d2b7d5bce
3 changed files with 17 additions and 4 deletions

View File

@ -228,9 +228,12 @@ windows_only:
free(final_win_template_last);
window_choose_ready(wl->window->active, cur_win, NULL);
window_choose_collapse_all(wl->window->active);
if (args_has(args, 'u'))
if (args_has(args, 'u')) {
window_choose_expand_all(wl->window->active);
window_choose_set_current(wl->window->active, cur_win);
}
return (CMD_RETURN_NORMAL);
}