Matěj Laitl <strohel@gmail.com> noticed that there was no way to distingush between comments and un-selectable menu lines. This patch marks comments with *** comment ***
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -481,6 +481,14 @@ static void build_conf(struct menu *menu) · 480 unmodified lines | |||
| 481 | if (single_menu_mode && menu->data) | 481 | if (single_menu_mode && menu->data) |
| 482 | goto conf_childs; | 482 | goto conf_childs; |
| 483 | return; | 483 | return; |
| 484 | case P_COMMENT: | ||
| 485 | if (prompt) { | ||
| 486 | child_count++; | ||
| 487 | item_make(" %*c*** %s ***", indent + 1, ' ', prompt); | ||
| 488 | item_set_tag(':'); | ||
| 489 | item_set_data(menu); | ||
| 490 | } | ||
| 491 | break; | ||
| 484 | default: | 492 | default: |
| 485 | if (prompt) { | 493 | if (prompt) { |
| 486 | child_count++; | 494 | child_count++; |