diff options
author | Robin Jarry <robin@jarry.cc> | 2022-11-23 01:04:48 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-11-24 20:14:08 +0100 |
commit | eebb85a9d5bd35b460d5cf89a0cadcfce5b68137 (patch) | |
tree | 3e6932f7a0c66ef15a357d62c8d75ffa332ae55d /logging | |
parent | 4db1353d97552b60ff57cbd6987fbe9dc6e6724b (diff) | |
download | aerc-eebb85a9d5bd35b460d5cf89a0cadcfce5b68137.tar.gz |
config: fix [filters] ordering
Using KeysHash() does not guarantee any stable ordering of elements.
This causes random weirdness when some filters are using wildcards:
[filters]
text/plain=colorize
text/html=html
text/*=bat -fP --file-name="$AERC_FILENAME" --style=plain
When the source order is not preserved, the text/* filter may be matched
first against text/plain or text/html parts.
Use Keys() which does not create a map and preserve original ordering.
Fixes: 17bb9387c4a3 ("config: move [filters] parsing to separate file")
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'logging')
0 files changed, 0 insertions, 0 deletions