diff options
-rw-r--r-- | filters/colorize.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/filters/colorize.c b/filters/colorize.c index 307fe190..622184d7 100644 --- a/filters/colorize.c +++ b/filters/colorize.c @@ -352,8 +352,13 @@ static int parse_styleset(void) char obj[64], attr[64], val[64]; int changed = 0; - if (sscanf(buf, "%63[^.].%63[^=] = %63s", obj, attr, val) != 3) + if (sscanf(buf, "%63[^.].%63[^=] = %63s", obj, attr, val) != 3) { + if (buf[0] == '[') { + /* start of another section */ + break; + } continue; + } for (size_t o = 0; o < ARRAY_SIZE(ini_objects); o++) { if (fnmatch(obj, ini_objects[o].n, 0)) |