nano

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

commit 6bfbb2bcd9e96edae2ea9e7174ee3a975c8d8e88
parent d82c753ba45405aaa4fcc7a0c5cf461fb8a98416
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 16 Jun 2019 10:40:15 +0200

tweaks: remove two more unneeded assignments

'opensyntax' is relevant only during the first pass through all the
nanorc files (intros_only == TRUE) when it is checked that syntax
commands are grouped properly and not mixed with others.  And
'lastcolor' is relevant only during the second pass of a specific
syntax, because only then the color commands are actually parsed.

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

diff --git a/src/rcfile.c b/src/rcfile.c @@ -337,7 +337,6 @@ void begin_new_syntax(char *ptr) live_syntax->comment = mallocstrcpy(NULL, GENERAL_COMMENT_CHARACTER); #endif live_syntax->color = NULL; - lastcolor = NULL; live_syntax->nmultis = 0; /* Hook the new syntax in at the top of the list. */ @@ -588,7 +587,6 @@ void parse_one_include(char *file, syntaxtype *syntax) } live_syntax = syntax; - opensyntax = TRUE; lastcolor = NULL; /* Fully parse the given syntax (as it is about to be used). */