summaryrefslogtreecommitdiff
path: root/alot/settings
diff options
context:
space:
mode:
Diffstat (limited to 'alot/settings')
-rw-r--r--alot/settings/theme.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/settings/theme.py b/alot/settings/theme.py
index c5f3f69a..2b708ce6 100644
--- a/alot/settings/theme.py
+++ b/alot/settings/theme.py
@@ -88,7 +88,7 @@ class Theme(object):
res['order'] = match.get('order', default['order'])
for part in res['order']:
res[part] = {}
- res[part]['width'] = match[part].get('width', ('fit', 0, 0))
+ res[part]['width'] = match[part].get('width') or ('fit', 0, 0)
res[part]['alignment'] = match[part].get('alignment')
res[part]['normal'] = pickcolour(match[part].get('normal', default['normal']))
res[part]['focus'] = pickcolour(match[part].get('focus', default['focus']))