summaryrefslogtreecommitdiff
path: root/tests/Krange
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-10-10 13:45:42 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-10-10 14:38:49 +0200
commita247f3f5815f42e8f1b616e311d38f41587cef64 (patch)
tree8889ea5bd8e40bc9b292e34eaef2670447633340 /tests/Krange
parentaa5b9e710e04a67e689af0bcc61c27f9f052c035 (diff)
menuconfig: Improve/fix promptless choice handling
The code assumed that all parent (interface) menus always have a prompt, which is false for items in promptless choices. This lead to a crash e.g. when viewing the symbol information for a symbol within a promptless choice. Promptless choices with children can show up "legitimately" when people define choices in multiple locations to add symbols, though this is broken in the C tools. Use standard_sc_expr_str(node.item) instead of the non-existing prompt for promptless choices. That way they show up as <choice (name if any>)>, which is consistent with how they're shown elsewhere. This commit also changes how choices names are displayed in show-name/show-all mode, to the standard_sc_expr_str() format.
Diffstat (limited to 'tests/Krange')
0 files changed, 0 insertions, 0 deletions