mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Use the right index when expanding/collapsing tree, from Thomas Adam.
This commit is contained in:
parent
69b8f100b7
commit
672df72b71
@ -559,10 +559,10 @@ window_choose_key(struct window_pane *wp, unused struct client *c,
|
||||
break;
|
||||
if (item->state & TREE_EXPANDED) {
|
||||
window_choose_collapse(wp, item->wcd->tree_session,
|
||||
item->wcd->idx);
|
||||
data->selected);
|
||||
} else {
|
||||
window_choose_expand(wp, item->wcd->tree_session,
|
||||
item->wcd->idx);
|
||||
data->selected);
|
||||
}
|
||||
window_choose_redraw_screen(wp);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user