Use the right index when expanding/collapsing tree, from Thomas Adam.

pull/1/head
nicm 2015-05-04 13:04:10 +00:00
parent 69b8f100b7
commit 672df72b71
1 changed files with 2 additions and 2 deletions

View File

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