OSDN Git Service

- Print helptexts of choices. If a choice (but not it's children) has help, print...
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 27 Oct 2008 14:14:05 +0000 (14:14 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 27 Oct 2008 14:14:05 +0000 (14:14 -0000)
  If a choice's child has no help, print parents help.

extra/config/kconfig-to-uclibc.patch.gz
extra/config/mconf.c

index 01c5d34..58c4173 100644 (file)
Binary files a/extra/config/kconfig-to-uclibc.patch.gz and b/extra/config/kconfig-to-uclibc.patch.gz differ
index d7314f3..18583bd 100644 (file)
@@ -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);
        }