aboutsummaryrefslogtreecommitdiffstats
path: root/commands/ct.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-11-23 01:04:48 +0100
committerRobin Jarry <robin@jarry.cc>2022-11-24 20:14:08 +0100
commiteebb85a9d5bd35b460d5cf89a0cadcfce5b68137 (patch)
tree3e6932f7a0c66ef15a357d62c8d75ffa332ae55d /commands/ct.go
parent4db1353d97552b60ff57cbd6987fbe9dc6e6724b (diff)
downloadaerc-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 'commands/ct.go')
0 files changed, 0 insertions, 0 deletions