summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-21 18:13:06 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-21 18:13:06 +0200
commit2509982f58edafa0cfe1ab15ac530bdcda8edec7 (patch)
tree0bf14e9ac2fcc496856c0935a3d95b55d1ddc4b9
parentee942bd3b75b2b95f32a14deb3387b353a934638 (diff)
menuconfig: Don't show implicit menus in symbol info
Only show "real" (non-indented) menus, like in the menu path at the top.
-rwxr-xr-xmenuconfig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/menuconfig.py b/menuconfig.py
index 9bd629f..9ee2912 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -2028,10 +2028,10 @@ def _menu_path_info(node):
path = ""
- menu = node.parent
- while menu is not _kconf.top_node:
- path = " -> " + menu.prompt[0] + path
- menu = menu.parent
+ node = _parent_menu(node)
+ while node is not _kconf.top_node:
+ path = " -> " + node.prompt[0] + path
+ node = _parent_menu(node)
return "(top menu)" + path