浏览代码

- 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 15 年之前
父节点
当前提交
c44ca63233
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 二进制
      extra/config/kconfig-to-uclibc.patch.gz
  2. 5 2
      extra/config/mconf.c

二进制
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);
 	}