Skip to content

Commit aee08ed

Browse files
bebarinomichal42
authored andcommitted
nconfig: Fix help for choice menus
When getting the help for a choice menu with a help section (for example the "Choose SLAB allocator" menu) nconfig pops up a window with nothing inside it. This is due to show_help() passing an empty string to show_scroll_win()'s 3rd argument. The option really does have help though, but it isn't a config symbol, so just add the help text for the option, and don't try to add anything else like the config option name. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Acked-by: Nir Tzachar <nir.tzachar@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 71d8066 commit aee08ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎scripts/kconfig/nconf.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,8 @@ static void show_help(struct menu *menu)
12651265
str_append(&help, _(menu_get_help(menu)));
12661266
str_append(&help, "\n");
12671267
get_symbol_str(&help, menu->sym);
1268+
} else {
1269+
str_append(&help, _(menu_get_help(menu)));
12681270
}
12691271
} else {
12701272
str_append(&help, nohelp_text);

0 commit comments

Comments
 (0)