aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-09-18 15:12:26 -0400
committerSam Ravnborg <sam@neptun.(none)>2007-10-12 15:15:32 -0400
commit48874077ddd6c0c444758059af2cf77c10204ece (patch)
treeb95f5f97af36abbba20394fec9af0a138ef42464
parentf5fb976520a53f45f8bbf2e851f16b3b5558d485 (diff)
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>
-rw-r--r--scripts/kconfig/mconf.c8
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)
481 if (single_menu_mode && menu->data) 481 if (single_menu_mode && menu->data)
482 goto conf_childs; 482 goto conf_childs;
483 return; 483 return;
484 case P_COMMENT:
485 if (prompt) {
486 child_count++;
487 item_make(" %*c*** %s ***", indent + 1, ' ', prompt);
488 item_set_tag(':');
489 item_set_data(menu);
490 }
491 break;
484 default: 492 default:
485 if (prompt) { 493 if (prompt) {
486 child_count++; 494 child_count++;