nano

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

commit 7f3ffe854416426c2bd667d17f3bcd7343040f96
parent ea1016efdbfb27296fd775254785f634b116881b
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  3 Jun 2019 14:21:17 +0200

tweaks: remove a bit of redundant code

When an included file has just been fully parsed, 'lastcolor' is still
pointing at the last color regex that was added to the list -- no need
to refind the end of this list.

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

diff --git a/src/rcfile.c b/src/rcfile.c @@ -578,11 +578,6 @@ void parse_one_include(char *file, syntaxtype *syntax) parse_rcfile(rcstream, TRUE, FALSE); opensyntax = TRUE; - lastcolor = syntax->color; - if (lastcolor != NULL) - while (lastcolor->next != NULL) - lastcolor = lastcolor->next; - extra = syntax->augmentations; /* Apply any stored extendsyntax commands. */