From: nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Mon, 7 Mar 2005 16:34:42 +0000 (+0000)
Subject: add menuconfig fix from uclibc buildroot
X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/00f72f87e7733b0c1d798b1d45700ea68d1ed678?ds=inline

add menuconfig fix from uclibc buildroot


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@341 3c298f89-4303-0410-b956-a3cf2f4a3e73
---

diff --git a/openwrt/package/config/mconf.c b/openwrt/package/config/mconf.c
index 0db6f8f6c..22ba1f302 100644
--- a/openwrt/package/config/mconf.c
+++ b/openwrt/package/config/mconf.c
@@ -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) {