History

kconfig: nconf: fix NORMAL attributes

The lower 8-bit of attributes should be 0, but this code wrongly sets it to NORMAL (=1). The correct one is A_NORMAL.

Masahiro Yamada committed 5 years ago

Commit 7f5ff551 parent 68876c31 file · +2 −2Browse files

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

Unified · Split

scripts/kconfig/nconf.gui.c+2−2
@@ -70,7 +70,7 @@ static void normal_color_theme(void) · 69 unmodified lines
7070 /* automatically add color... */
7171 #define mkattr(name, attr) do { \
7272 attributes[name] = attr | COLOR_PAIR(name); } while (0)
73− mkattr(NORMAL, NORMAL);
73+ mkattr(NORMAL, A_NORMAL);
7474 mkattr(MAIN_HEADING, A_BOLD | A_UNDERLINE);
7575
7676 mkattr(MAIN_MENU_FORE, A_REVERSE);
@@ -102,7 +102,7 @@ static void no_colors_theme(void) · 25 unmodified lines
102102 /* automatically add highlight, no color */
103103 #define mkattrn(name, attr) { attributes[name] = attr; }
104104
105− mkattrn(NORMAL, NORMAL);
105+ mkattrn(NORMAL, A_NORMAL);
106106 mkattrn(MAIN_HEADING, A_BOLD | A_UNDERLINE);
107107
108108 mkattrn(MAIN_MENU_FORE, A_STANDOUT);