summaryrefslogtreecommitdiff
path: root/alot/settings
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-10-26 16:15:33 -0500
committerPatrick Totzke <patricktotzke@gmail.com>2018-12-22 13:35:53 +0100
commitdbc70433b4b910b1ee61e98958971f0d1bcee9fb (patch)
tree2a848a6c14bb36fc413b39129576cd2c48cb1913 /alot/settings
parenta28dfb4f3b81b4949488e241d0f17a2621b676f7 (diff)
restore support for regex in section names
Diffstat (limited to 'alot/settings')
-rw-r--r--alot/settings/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py
index 4b97c611..c88d7d85 100644
--- a/alot/settings/manager.py
+++ b/alot/settings/manager.py
@@ -354,7 +354,7 @@ class SettingsManager(object):
fallback_focus = resolve_att(onebelow_focus, default_focus)
for sec in cfg['tags'].sections:
- if re.match('^{}$'.format(re.escape(sec)), tag):
+ if re.match('^{}$'.format(sec), tag):
normal = resolve_att(colourpick(cfg['tags'][sec]['normal']),
fallback_normal)
focus = resolve_att(colourpick(cfg['tags'][sec]['focus']),