commit 6bab8d19c60a7acca9cb95088a05707e19000893 parent 365058c48f94696cdf4023d1bdd14ce5f6d2e8b3 Author: Benno Schulenberg <bensberg@telfort.nl> Date: Tue, 3 Mar 2020 19:46:46 +0100 tweaks: adjust the indentation after the previous change And regroup things a bit. Diffstat:
M | src/rcfile.c | | | 21 | ++++++++++----------- |
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git 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;