fish_config: capitalize keynames to match parser output

This commit is contained in:
Jin Liu 2016-08-23 18:40:37 +08:00
parent ecaba64056
commit 4d04125fa1

View file

@ -398,7 +398,7 @@ class BindingParser:
""" Gets a readable representation of binding """ """ Gets a readable representation of binding """
try: try:
result = BindingParser.readable_keys[self.buffer] result = BindingParser.readable_keys[self.buffer.lower()]
except KeyError: except KeyError:
result = self.parse_binding() result = self.parse_binding()
@ -599,7 +599,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
if comps[1] == '-k': if comps[1] == '-k':
key_name, command = comps[2].split(' ', 1) key_name, command = comps[2].split(' ', 1)
binding_parser.set_buffer(key_name) binding_parser.set_buffer(key_name.capitalize())
else: else:
key_name = None key_name = None
command = comps[2] command = comps[2]