Fix empty aliases causing an error when loading known sessions

Fixes #9043
This commit is contained in:
Kovid Goyal
2025-09-29 21:30:26 +05:30
parent 2f14ebb554
commit bac2ff90ba

View File

@@ -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