summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py8
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=''):
"""