X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fdedeckeh.git;a=blobdiff_plain;f=openwrt%2Fpackage%2Fconfig%2Fmconf.c;h=00580bd666ac19625f633934fc591a3987a0a778;hp=0db6f8f6c8a8d1d76e660194b0f924d1b82eeb22;hb=af034797eeb62b62ac05442d5a688b28ccd0f16b;hpb=e3a3457a9d50dff8dac230880b7523a208d0c85f diff --git a/openwrt/package/config/mconf.c b/openwrt/package/config/mconf.c index 0db6f8f6c8..00580bd666 100644 --- a/openwrt/package/config/mconf.c +++ b/openwrt/package/config/mconf.c @@ -101,7 +101,7 @@ static char filename[PATH_MAX+1] = ".config"; static int indent = 0; static struct termios ios_org; static int rows, cols; -static struct menu *current_menu; +struct menu *current_menu; static int child_count; static int single_menu_mode; @@ -308,6 +308,12 @@ static void build_conf(struct menu *menu) return; } } else { + if (menu == current_menu) { + cprint_tag(":%p", menu); + cprint_name("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); + goto conf_childs; + } + child_count++; val = sym_get_tristate_value(sym); if (sym_is_choice_value(sym) && val == yes) {