Normalize keybinding with :bind

This commit is contained in:
Florian Bruhin 2018-02-27 07:51:14 +01:00
parent 214e750c69
commit e8d5fb5cca

View File

@ -154,17 +154,13 @@ class ConfigCommands:
return return
# No --default -> print binding # No --default -> print binding
#if utils.is_special_key(key):
# # self._keyconfig.get_command does this, but we also need it
# # normalized for the output below
# key = utils.normalize_keystr(key)
with self._handle_config_error(): with self._handle_config_error():
cmd = self._keyconfig.get_command(seq, mode) cmd = self._keyconfig.get_command(seq, mode)
if cmd is None: if cmd is None:
message.info("{} is unbound in {} mode".format(key, mode)) message.info("{} is unbound in {} mode".format(seq, mode))
else: else:
message.info("{} is bound to '{}' in {} mode".format( message.info("{} is bound to '{}' in {} mode".format(
key, cmd, mode)) seq, cmd, mode))
return return
with self._handle_config_error(): with self._handle_config_error():