nano

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

commit 7c57806c6f3e29db10d3a224c765afa71d1cb8aa
parent a2f8703df5a9cf7b13416c250f329a87436e0feb
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 31 Jan 2020 16:11:38 +0100

rcfile: require "bright", "start=", and "end=" to be in lowercase too

Diffstat:
Msrc/rcfile.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/rcfile.c b/src/rcfile.c @@ -962,7 +962,7 @@ void parse_includes(char *ptr) * and set bright to TRUE if that color is bright. */ short color_to_short(const char *colorname, bool *bright) { - if (strncasecmp(colorname, "bright", 6) == 0) { + if (strncmp(colorname, "bright", 6) == 0) { *bright = TRUE; colorname += 6; } else @@ -1059,7 +1059,7 @@ void parse_colors(char *ptr, int rex_flags) bool expectend = FALSE; /* Whether to expect an end= line. */ - if (strncasecmp(ptr, "start=", 6) == 0) { + if (strncmp(ptr, "start=", 6) == 0) { ptr += 6; expectend = TRUE; } @@ -1105,7 +1105,7 @@ void parse_colors(char *ptr, int rex_flags) if (!expectend) continue; - if (ptr == NULL || strncasecmp(ptr, "end=", 4) != 0) { + if (ptr == NULL || strncmp(ptr, "end=", 4) != 0) { jot_error(N_("\"start=\" requires a corresponding \"end=\"")); return; }