提交 48874077 编写于 作者: S Sam Ravnborg 提交者: Sam Ravnborg

kconfig: make comments stand out in menuconfig

Matěj Laitl <strohel@gmail.com> noticed that there was no way
to distingush between comments and un-selectable menu lines.
This patch marks comments with *** comment ***

Cc: Matěj Laitl <strohel@gmail.com>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 f5fb9765
...@@ -481,6 +481,14 @@ static void build_conf(struct menu *menu) ...@@ -481,6 +481,14 @@ static void build_conf(struct menu *menu)
if (single_menu_mode && menu->data) if (single_menu_mode && menu->data)
goto conf_childs; goto conf_childs;
return; return;
case P_COMMENT:
if (prompt) {
child_count++;
item_make(" %*c*** %s ***", indent + 1, ' ', prompt);
item_set_tag(':');
item_set_data(menu);
}
break;
default: default:
if (prompt) { if (prompt) {
child_count++; child_count++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册