mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
When using choose-tree -u, start with the current window
highlighted. From Thomas Adam.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user