summaryrefslogtreecommitdiff
path: root/alot/settings
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-07-07 11:41:41 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-07-07 11:41:41 +0100
commitc0d59d6c0ac9d1f65a9a9becbcbf8af8f1baf790 (patch)
tree0c1683be1bc5cf7c437119730a22404aae6ccdc4 /alot/settings
parent321a70e21e8485a03bdad516ecc48e4756a0039f (diff)
make sure width is set
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']))