nano

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

commit 4f9d55bb153a9e25578aab3cbf0a7d3e692fc79c
parent 89adacff3d0bf20979f9d7787262f2fae80425b4
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 25 May 2021 15:31:54 +0200

tweaks: normalize the indentation after the previous change

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

diff --git a/src/rcfile.c b/src/rcfile.c @@ -1023,16 +1023,16 @@ short color_to_short(const char *colorname, bool *vivid, bool *thick) *thick = FALSE; } - for (int index = 0; index < COLORCOUNT; index++) - if (strcmp(colorname, hues[index]) == 0) { - if (index > 8 && *vivid) { - jot_error(N_("Color '%s' takes no prefix"), colorname); - return BAD_COLOR; - } else if (index > 8 && COLORS < 255) - return THE_DEFAULT; - else - return indices[index]; - } + for (int index = 0; index < COLORCOUNT; index++) + if (strcmp(colorname, hues[index]) == 0) { + if (index > 8 && *vivid) { + jot_error(N_("Color '%s' takes no prefix"), colorname); + return BAD_COLOR; + } else if (index > 8 && COLORS < 255) + return THE_DEFAULT; + else + return indices[index]; + } jot_error(N_("Color \"%s\" not understood"), colorname); return BAD_COLOR;