nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit b4737072a68593479d100caf4be3ea110b94511f
parent 8507dd4bd0dcc3230927abb070be3b5268b3acd4
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Tue, 12 Jul 2016 09:24:32 +0200

tweaks: delete an element that is always FALSE and never used

Diffstat:
Msrc/color.c | 2--
Msrc/nano.c | 4----
Msrc/nano.h | 2--
3 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/color.c b/src/color.c @@ -62,12 +62,10 @@ void set_colorpairs(void) if (background == -1 && !using_defaults) background = COLOR_BLACK; init_pair(i + 1, foreground, background); - interface_color_pair[i].bright = FALSE; interface_color_pair[i].pairnum = COLOR_PAIR(i + 1) | (bright ? A_BOLD : A_NORMAL); } else { - interface_color_pair[i].bright = FALSE; if (i != FUNCTION_TAG) interface_color_pair[i].pairnum = hilite_attribute; else diff --git a/src/nano.c b/src/nano.c @@ -2510,10 +2510,6 @@ int main(int argc, char **argv) interface_color_pair[STATUS_BAR].pairnum = hilite_attribute; interface_color_pair[KEY_COMBO].pairnum = hilite_attribute; 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 #if !defined(NANO_TINY) && defined(HAVE_KEY_DEFINED) diff --git a/src/nano.h b/src/nano.h @@ -203,8 +203,6 @@ typedef struct color_pair { int pairnum; /* The color pair number used for this foreground color and * background color. */ - bool bright; - /* Is this color A_BOLD? */ } color_pair; #ifndef DISABLE_COLOR