tweaks: delete an element that is always FALSE and never used
parent
8507dd4bd0
commit
b4737072a6
|
@ -62,12 +62,10 @@ void set_colorpairs(void)
|
||||||
if (background == -1 && !using_defaults)
|
if (background == -1 && !using_defaults)
|
||||||
background = COLOR_BLACK;
|
background = COLOR_BLACK;
|
||||||
init_pair(i + 1, foreground, background);
|
init_pair(i + 1, foreground, background);
|
||||||
interface_color_pair[i].bright = FALSE;
|
|
||||||
interface_color_pair[i].pairnum =
|
interface_color_pair[i].pairnum =
|
||||||
COLOR_PAIR(i + 1) | (bright ? A_BOLD : A_NORMAL);
|
COLOR_PAIR(i + 1) | (bright ? A_BOLD : A_NORMAL);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
interface_color_pair[i].bright = FALSE;
|
|
||||||
if (i != FUNCTION_TAG)
|
if (i != FUNCTION_TAG)
|
||||||
interface_color_pair[i].pairnum = hilite_attribute;
|
interface_color_pair[i].pairnum = hilite_attribute;
|
||||||
else
|
else
|
||||||
|
|
|
@ -2510,10 +2510,6 @@ int main(int argc, char **argv)
|
||||||
interface_color_pair[STATUS_BAR].pairnum = hilite_attribute;
|
interface_color_pair[STATUS_BAR].pairnum = hilite_attribute;
|
||||||
interface_color_pair[KEY_COMBO].pairnum = hilite_attribute;
|
interface_color_pair[KEY_COMBO].pairnum = hilite_attribute;
|
||||||
interface_color_pair[FUNCTION_TAG].pairnum = A_NORMAL;
|
interface_color_pair[FUNCTION_TAG].pairnum = A_NORMAL;
|
||||||
interface_color_pair[TITLE_BAR].bright = FALSE;
|
|
||||||
interface_color_pair[STATUS_BAR].bright = FALSE;
|
|
||||||
interface_color_pair[KEY_COMBO].bright = FALSE;
|
|
||||||
interface_color_pair[FUNCTION_TAG].bright = FALSE;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(NANO_TINY) && defined(HAVE_KEY_DEFINED)
|
#if !defined(NANO_TINY) && defined(HAVE_KEY_DEFINED)
|
||||||
|
|
|
@ -203,8 +203,6 @@ typedef struct color_pair {
|
||||||
int pairnum;
|
int pairnum;
|
||||||
/* The color pair number used for this foreground color and
|
/* The color pair number used for this foreground color and
|
||||||
* background color. */
|
* background color. */
|
||||||
bool bright;
|
|
||||||
/* Is this color A_BOLD? */
|
|
||||||
} color_pair;
|
} color_pair;
|
||||||
|
|
||||||
#ifndef DISABLE_COLOR
|
#ifndef DISABLE_COLOR
|
||||||
|
|
Loading…
Reference in New Issue