diff options
author | Robin Jarry <robin@jarry.cc> | 2024-02-09 23:54:56 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-14 23:05:23 +0100 |
commit | 22254f7532034d6b8561913e7fa7280800711fca (patch) | |
tree | 90bed9d9445e09043307659958bd0401d63245fd /filters | |
parent | b6fd647d7d51ceaf386a79da6d04f57e0a7deac2 (diff) | |
download | aerc-22254f7532034d6b8561913e7fa7280800711fca.tar.gz |
colorize: preserve defaults unless overridden
To be consistent with stylesets for the rest of aerc's UI, settings in
the [viewer] section now only override the default colorize theme.
Implements: https://todo.sr.ht/~rjarry/aerc/222
Changelog-changed: The `[viewer]` section of stylesets now preserve
default values as documented in `aerc-stylesets(7)` unless explicitly
overridden.
Requested-by: Karel Balej <balejk@matfyz.cz>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Karel Balej <balejk@matfyz.cz>
Tested-by: Matěj Cepl <mcepl@cepl.eu>
Tested-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Diffstat (limited to 'filters')
-rw-r--r-- | filters/colorize.c | 3 | ||||
-rwxr-xr-x | filters/test.sh | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/filters/colorize.c b/filters/colorize.c index 36474ba9..14150154 100644 --- a/filters/colorize.c +++ b/filters/colorize.c @@ -389,9 +389,6 @@ static int parse_styleset(void) } } else if (!strcmp(buf, "[viewer]")) { in_section = true; - /* only disable the default theme if there is - * a [viewer] section in the styleset */ - memset(&styles, 0, sizeof(styles)); } } diff --git a/filters/test.sh b/filters/test.sh index 16d1438c..39319d6b 100755 --- a/filters/test.sh +++ b/filters/test.sh @@ -12,6 +12,8 @@ cat >$style <<EOF url.fg = red [viewer] +*.normal=true +*.default=true url.underline = true # cxwlkj header.bold= true # comment signature.dim=true |