Skip to content
Snippets Groups Projects
Commit 7f5ff55b authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 68876c38
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ static void normal_color_theme(void)
/* automatically add color... */
#define mkattr(name, attr) do { \
attributes[name] = attr | COLOR_PAIR(name); } while (0)
mkattr(NORMAL, NORMAL);
mkattr(NORMAL, A_NORMAL);
mkattr(MAIN_HEADING, A_BOLD | A_UNDERLINE);
mkattr(MAIN_MENU_FORE, A_REVERSE);
......@@ -102,7 +102,7 @@ static void no_colors_theme(void)
/* automatically add highlight, no color */
#define mkattrn(name, attr) { attributes[name] = attr; }
mkattrn(NORMAL, NORMAL);
mkattrn(NORMAL, A_NORMAL);
mkattrn(MAIN_HEADING, A_BOLD | A_UNDERLINE);
mkattrn(MAIN_MENU_FORE, A_STANDOUT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment