From 6bab8d19c60a7acca9cb95088a05707e19000893 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 3 Mar 2020 19:46:46 +0100 Subject: [PATCH] tweaks: adjust the indentation after the previous change And regroup things a bit. --- src/rcfile.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index a94206c7..7bac6ce2 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -1086,19 +1086,18 @@ void parse_rule(char *ptr, int rex_flags) return; } - newcolor->fg = fg; - newcolor->bg = bg; - newcolor->attributes = attributes; + newcolor->fg = fg; + newcolor->bg = bg; + newcolor->attributes = attributes; + newcolor->end = NULL; - newcolor->end = NULL; - newcolor->next = NULL; + if (lastcolor == NULL) + live_syntax->color = newcolor; + else + lastcolor->next = newcolor; - if (lastcolor == NULL) - live_syntax->color = newcolor; - else - lastcolor->next = newcolor; - - lastcolor = newcolor; + newcolor->next = NULL; + lastcolor = newcolor; if (!expectend) continue;