diff options
author | mathieui <mathieui@mathieui.net> | 2012-07-29 19:45:46 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-07-29 19:45:46 +0200 |
commit | ec7dd75012bafd5281e88aa83c54547cb3b36bf5 (patch) | |
tree | 249d1ba846af995bbbc7078ba97dbfa8a0352c16 /src/common.py | |
parent | e7837355d1f0758a86e097b9728374e7cbfcf5bf (diff) | |
download | poezio-ec7dd75012bafd5281e88aa83c54547cb3b36bf5.tar.gz poezio-ec7dd75012bafd5281e88aa83c54547cb3b36bf5.tar.bz2 poezio-ec7dd75012bafd5281e88aa83c54547cb3b36bf5.tar.xz poezio-ec7dd75012bafd5281e88aa83c54547cb3b36bf5.zip |
/bind with only one argument now resets the binding
Diffstat (limited to 'src/common.py')
-rw-r--r-- | src/common.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common.py b/src/common.py index 26b5dd0f..23912411 100644 --- a/src/common.py +++ b/src/common.py @@ -188,10 +188,10 @@ def shell_split(st): return st.split(" ") def replace_key_with_bound(key): - if config.has_option('bindings', key): - return config.get(key, key, 'bindings') - else: - return key + bind = config.get(key, key, 'bindings') + if not bind: + bind = key + return bind def parse_str_to_secs(duration=''): """ |