mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
In hierbox_ev_kbd, use the local variable selected, which is assigned
This commit is contained in:
parent
4eb0cbf271
commit
247fe95fea
@ -186,10 +186,10 @@ hierbox_ev_kbd(struct dialog_data *dlg_data)
|
|||||||
} else if (action_id == ACT_MENU_EXPAND) {
|
} else if (action_id == ACT_MENU_EXPAND) {
|
||||||
/* Recursively expand all folders */
|
/* Recursively expand all folders */
|
||||||
|
|
||||||
if (!selected || box->sel->type != BI_FOLDER)
|
if (!selected || selected->type != BI_FOLDER)
|
||||||
return EVENT_PROCESSED;
|
return EVENT_PROCESSED;
|
||||||
|
|
||||||
recursively_set_expanded(box->sel, 1);
|
recursively_set_expanded(selected, 1);
|
||||||
|
|
||||||
} else if (action_id == ACT_MENU_SEARCH) {
|
} else if (action_id == ACT_MENU_SEARCH) {
|
||||||
if (!box->ops->match)
|
if (!box->ops->match)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user