diff options
| -rwxr-xr-x | menuconfig.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/menuconfig.py b/menuconfig.py index be8c3d5..77b9d07 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -2180,9 +2180,10 @@ def _node_str(node): s = "{:{}}".format(_value_str(node), 3 + indent) # 'not node.prompt' can only be True in show-all mode - if (not node.prompt or _show_name) and \ - (isinstance(node.item, Symbol) or - (isinstance(node.item, Choice) and node.item.name)): + if not node.prompt or \ + (_show_name and + (isinstance(node.item, Symbol) or + (isinstance(node.item, Choice) and node.item.name))): s += " <{}>".format(node.item.name) |
