diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-21 05:18:48 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-21 05:18:48 +0200 |
| commit | 3161affaa5bb8350a39bfd305c56171a25b02151 (patch) | |
| tree | b5649197ab23538536bf9dfe84c110e9a671b300 /menuconfig.py | |
| parent | a55a06c47da413f78ef7b4ae480d2c3172763f60 (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-x | menuconfig.py | 4 |
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]) |
