Make "menu default" work after "menu begin", similar to after
"label". This is consistent with how "menu label" works.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
}
}
} else if ( looking_at(p, "default") ) {
- ld.menudefault = 1;
+ if (ld.label) {
+ ld.menudefault = 1;
+ } else if (m->parent_entry) {
+ m->parent->defentry = m->parent_entry->entry;
+ }
} else if ( looking_at(p, "hide") ) {
ld.menuhide = 1;
} else if ( looking_at(p, "passwd") ) {