mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08: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…
x
Reference in New Issue
Block a user