From 5deda2a18da0bf2222076a2519896a39aabb3562 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 18 May 2018 01:36:01 +0200 Subject: menuconfig: Don't show indentation-based menus in menu path Don't show A in the menu path at the top when entering the menu "B" below, which will be indented relative to A. It looks confusing, and can lead to really long menu paths. config A bool "A" menu "B" depends on A ... --- menuconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'menuconfig.py') diff --git a/menuconfig.py b/menuconfig.py index 31fe4f2..cac98ee 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -825,7 +825,7 @@ def _draw_main(): menu = _cur_menu while menu is not _kconf.top_node: menu_prompts.append(menu.prompt[0]) - menu = menu.parent + menu = _parent_menu(menu) menu_prompts.append("(top menu)") menu_prompts.reverse() -- cgit v1.2.3