summaryrefslogtreecommitdiff
path: root/menuconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-21 05:18:48 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-21 05:18:48 +0200
commit3161affaa5bb8350a39bfd305c56171a25b02151 (patch)
treeb5649197ab23538536bf9dfe84c110e9a671b300 /menuconfig.py
parenta55a06c47da413f78ef7b4ae480d2c3172763f60 (diff)
menuconfig: Show symbol values in search results
Makes it double as a quick way to check if something is enabled. Suggested by Randy Dunlap.
Diffstat (limited to 'menuconfig.py')
-rwxr-xr-xmenuconfig.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/menuconfig.py b/menuconfig.py
index 9055d5b..3fb1ebc 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -1608,7 +1608,9 @@ def _draw_jump_to_dialog(edit_box, matches_win, bot_sep_win, help_win,
for i in range(scroll,
min(scroll + matches_win.getmaxyx()[0], len(matches))):
- sym_str = matches[i].item.name
+ sym = matches[i].item
+
+ sym_str = "{}(={})".format(sym.name, sym.str_value)
if matches[i].prompt:
sym_str += ' "{}"'.format(matches[i].prompt[0])