diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-02-26 10:13:41 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-02-26 10:13:41 +0000 |
commit | bcea1912abaf135d653425641ed778a62921a612 (patch) | |
tree | 3c36ed114367970113ffb5af50c7d0a6bd231ab5 /alot | |
parent | 39f74fdd0f4a4e6f4a12765217fdf9b56fb5c189 (diff) |
correctly read global maps from config
fixes issue #363
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/globals.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index b3421b3a..4d4ef3a2 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -378,7 +378,8 @@ class HelpCommand(Command): if self.commandname == 'bindings': # get mappings modemaps = dict(settings._bindings[ui.mode].items()) - globalmaps = dict(settings._bindings['global'].items()) + is_scalar = lambda (k, v): k in settings._bindings.scalars + globalmaps = dict(filter(is_scalar, settings._bindings.items())) # build table maxkeylength = len(max((modemaps).keys() + globalmaps.keys(), |