diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-09-18 21:12:26 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@neptun.(none)> | 2007-10-12 21:15:32 +0200 |
commit | 48874077ddd6c0c444758059af2cf77c10204ece (patch) | |
tree | b95f5f97af36abbba20394fec9af0a138ef42464 /scripts | |
parent | f5fb976520a53f45f8bbf2e851f16b3b5558d485 (diff) | |
download | linux-48874077ddd6c0c444758059af2cf77c10204ece.tar.gz linux-48874077ddd6c0c444758059af2cf77c10204ece.tar.bz2 linux-48874077ddd6c0c444758059af2cf77c10204ece.zip |
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: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/mconf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index bc5854ed6055..2ee12a744641 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -481,6 +481,14 @@ static void build_conf(struct menu *menu) if (single_menu_mode && menu->data) goto conf_childs; return; + case P_COMMENT: + if (prompt) { + child_count++; + item_make(" %*c*** %s ***", indent + 1, ' ', prompt); + item_set_tag(':'); + item_set_data(menu); + } + break; default: if (prompt) { child_count++; |