1
1

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.
Этот коммит содержится в:
Benno Schulenberg 2019-06-03 14:21:17 +02:00
родитель ea1016efdb
Коммит 7f3ffe8544

Просмотреть файл

@ -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. */