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

Unified · Split

scripts/kconfig/nconf.gui.c+2−2
@@ -70,7 +70,7 @@ static void normal_color_theme(void) · 69 unmodified lines
70 /* automatically add color... */70 /* automatically add color... */
71#define mkattr(name, attr) do { \71#define mkattr(name, attr) do { \
72attributes[name] = attr | COLOR_PAIR(name); } while (0)72attributes[name] = attr | COLOR_PAIR(name); } while (0)
73 mkattr(NORMAL, NORMAL);73 mkattr(NORMAL, A_NORMAL);
74 mkattr(MAIN_HEADING, A_BOLD | A_UNDERLINE);74 mkattr(MAIN_HEADING, A_BOLD | A_UNDERLINE);
75 75
76 mkattr(MAIN_MENU_FORE, A_REVERSE);76 mkattr(MAIN_MENU_FORE, A_REVERSE);
@@ -102,7 +102,7 @@ static void no_colors_theme(void) · 25 unmodified lines
102 /* automatically add highlight, no color */102 /* automatically add highlight, no color */
103#define mkattrn(name, attr) { attributes[name] = attr; }103#define mkattrn(name, attr) { attributes[name] = attr; }
104 104
105 mkattrn(NORMAL, NORMAL);105 mkattrn(NORMAL, A_NORMAL);
106 mkattrn(MAIN_HEADING, A_BOLD | A_UNDERLINE);106 mkattrn(MAIN_HEADING, A_BOLD | A_UNDERLINE);
107 107
108 mkattrn(MAIN_MENU_FORE, A_STANDOUT);108 mkattrn(MAIN_MENU_FORE, A_STANDOUT);