Updated bindings in __main__.
This commit is contained in:
1 parent
c5bf97efcc
commit
0de3033414
2 files changed
+5
-1
No files matched your search
+4
-1
@@ -45,7 +45,10 @@ def main():
|
||||
config = Config()
|
||||
config.update(**fargs)
|
||||
config.update(**args)
|
||||
config.keymap.update(**bindings)
|
||||
|
||||
# If key bindings are supplied in the config file, overwrite the defaults
|
||||
if bindings:
|
||||
config.keymap.set_bindings(bindings)
|
||||
|
||||
# Copy the default config file and quit
|
||||
if config['copy_config']:
|
||||
|
||||
@@ -610,6 +610,7 @@ class KeyMap(object):
|
||||
"""
|
||||
|
||||
def __init__(self, bindings):
|
||||
self._keymap = None
|
||||
self.set_bindings(bindings)
|
||||
|
||||
def set_bindings(self, bindings):
|
||||
|
||||
Reference in new issue
Block a user