History

kconfig: make comments stand out in menuconfig

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 ***

Sam Ravnborg committed 19 years ago

Commit 48874071 parent f5fb9761 file · +8 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/mconf.c+8−0
@@ -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++;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t