Explorar o código

- Print helptexts of choices. If a choice (but not it's children) has help, print that.
If a choice's child has no help, print parents help.

Bernhard Reutner-Fischer %!s(int64=17) %!d(string=hai) anos
pai
achega
c44ca63233
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  1. BIN=BIN
      extra/config/kconfig-to-uclibc.patch.gz
  2. 5 2
      extra/config/mconf.c

BIN=BIN
extra/config/kconfig-to-uclibc.patch.gz


+ 5 - 2
extra/config/mconf.c

@@ -704,9 +704,12 @@ static void show_help(struct menu *menu)
 	{
 		if (sym->name) {
 			str_printf(&help, "%s:\n\n", sym->name);
-			str_append(&help, _(menu_get_help(menu)));
-			str_append(&help, "\n");
 		}
+		str_append(&help, _(menu_get_help(menu)));
+		str_append(&help, "\n");
+	} else if (menu_has_help(sym->prop->menu->parent)) {
+		str_append(&help, _(menu_get_help(sym->prop->menu->parent)));
+		str_append(&help, "\n");
 	} else {
 		str_append(&help, nohelp_text);
 	}