nano

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

commit d7df7c694a2c785efa42c519a489db702338def3
parent ce69d5be8837c0adbf96d5c5b345ddfe416dc905
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 13 Jun 2019 15:46:06 +0200

tweaks: elide a pre-processor #else clause, by using braces instead

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

diff --git a/src/rcfile.c b/src/rcfile.c @@ -972,13 +972,11 @@ bool parse_syntax_commands(char *keyword, char *ptr) parse_colors(ptr, NANO_REG_EXTENDED); else if (strcasecmp(keyword, "icolor") == 0) parse_colors(ptr, NANO_REG_EXTENDED | REG_ICASE); - else if (strcasecmp(keyword, "comment") == 0) + else if (strcasecmp(keyword, "comment") == 0) { #ifdef ENABLE_COMMENT pick_up_name("comment", ptr, &live_syntax->comment); -#else - ; #endif - else if (strcasecmp(keyword, "linter") == 0) + } else if (strcasecmp(keyword, "linter") == 0) pick_up_name("linter", ptr, &live_syntax->linter); else return FALSE;