From: Randy Dunlap Date: Sun, 18 Apr 2021 05:51:23 +0000 (-0700) Subject: kconfig: highlight xconfig 'comment' lines with '***' X-Git-Tag: v5.15~1234^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92f8a9217a1215cc3d71e82d5d1cde0793cf0501;p=platform%2Fkernel%2Flinux-starfive.git kconfig: highlight xconfig 'comment' lines with '***' Mark Kconfig "comment" lines with "*** ***" 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 Signed-off-by: Masahiro Yamada --- diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index d000869..78087b2d 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: ;