1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

In hierbox_ev_kbd, use the local variable selected, which is assigned

This commit is contained in:
Miciah Dashiel Butler Masters 2006-01-01 03:25:53 +00:00 committed by Miciah Dashiel Butler Masters
parent 4eb0cbf271
commit 247fe95fea

View File

@ -186,10 +186,10 @@ hierbox_ev_kbd(struct dialog_data *dlg_data)
} else if (action_id == ACT_MENU_EXPAND) {
/* Recursively expand all folders */
if (!selected || box->sel->type != BI_FOLDER)
if (!selected || selected->type != BI_FOLDER)
return EVENT_PROCESSED;
recursively_set_expanded(box->sel, 1);
recursively_set_expanded(selected, 1);
} else if (action_id == ACT_MENU_SEARCH) {
if (!box->ops->match)