Procházet zdrojové kódy

- 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 před 15 roky
rodič
revize
c44ca63233
2 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. binární
      extra/config/kconfig-to-uclibc.patch.gz
  2. 5 2
      extra/config/mconf.c

binární
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);
 	}