X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=config%2Fmenu.c;h=dcf22008b2d6e4732d1e2785b0706395a8e1b071;hp=7634d567e77949d2f7a71d05a5de8d9e96403500;hb=82b30c13e001113c9df51fcbfbde94bce1183d29;hpb=8feb6085df8ac5f420533fba818aad40d0ff0e09 diff --git a/config/menu.c b/config/menu.c index 7634d56..dcf2200 100644 --- a/config/menu.c +++ b/config/menu.c @@ -323,6 +323,13 @@ void menu_finalize(struct menu *parent) if (menu->sym && menu->sym->type == S_UNKNOWN) menu_set_type(sym->type); } + + /* + * Use the choice itself as the parent dependency of + * the contained items. This turns the mode of the + * choice into an upper bound on the visibility of the + * choice value symbols. + */ parentdep = expr_alloc_symbol(sym); } else if (parent->prompt) parentdep = parent->prompt->visible.expr;