summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2021-04-17 22:51:23 -0700
committerMasahiro Yamada <masahiroy@kernel.org>2021-04-19 14:58:23 +0900
commit92f8a9217a1215cc3d71e82d5d1cde0793cf0501 (patch)
tree70a27da4727c085ea153c7d527d66b479db05e46 /scripts
parent5fb35ec10bb0665080c8de8a360fb4dba9a0f73f (diff)
downloadlinux-92f8a9217a1215cc3d71e82d5d1cde0793cf0501.tar.gz
linux-92f8a9217a1215cc3d71e82d5d1cde0793cf0501.tar.xz
kconfig: highlight xconfig 'comment' lines with '***'
Mark Kconfig "comment" lines with "*** <commentstring> ***" so that it is clear that these lines are comments and not some kconfig item that cannot be modified. This is helpful in some menus to be able to provide a menu "sub-heading" for groups of similar config items. This also makes the comments be presented in a way that is similar to menuconfig and nconfig. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/qconf.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index d000869b787c..78087b2d9ac6 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -122,6 +122,7 @@ void ConfigItem::updateMenu(void)
goto set_prompt;
case P_COMMENT:
setIcon(promptColIdx, QIcon());
+ prompt = "*** " + prompt + " ***";
goto set_prompt;
default:
;