Fix a regression that broke kitten_alias

Fixes #2952
This commit is contained in:
Kovid Goyal 2020-09-06 12:15:06 +05:30
parent 80e39212b8
commit 3e0614a293
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
Plex Mono and have the regular face with a full name that is the same as the
family name (:iss:`2951`)
- Fix a regression that broke :opt:`kitten_alias` (:iss:`2952`)
0.18.3 [2020-08-11]
-------------------

View File

@ -393,7 +393,7 @@ class KeyDefinition:
if len(expanded) > 1:
rest = expanded[1] + ' ' + rest
if changed:
self.action = self.action._replace(args=[kitten + (' ' + rest).rstrip()])
self.action = self.action._replace(args=[kitten, rest.rstrip()])
def parse_key(val: str, key_definitions: List[KeyDefinition]) -> None: