mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 16:05:05 +02:00
Fix empty aliases causing an error when loading known sessions
Fixes #9043
This commit is contained in:
@@ -1165,6 +1165,8 @@ def build_action_aliases(raw: dict[str, str], first_arg_replacement: str = '') -
|
||||
def resolve_aliases_and_parse_actions(
|
||||
defn: str, aliases: dict[str, list[ActionAlias]], map_type: MapType
|
||||
) -> Iterator[KeyAction]:
|
||||
if not defn:
|
||||
return
|
||||
parts = defn.split(maxsplit=1)
|
||||
if len(parts) == 1:
|
||||
possible_alias = defn
|
||||
|
||||
Reference in New Issue
Block a user