abbrevs: don't overwrite the dictionary if it already exists

This commit is contained in:
David Strobach 2020-03-25 20:35:19 +01:00
parent e5621ef369
commit 947fa2d0b5

View file

@ -12,7 +12,8 @@ from xonsh.tools import check_for_partial_string
__all__ = () __all__ = ()
builtins.__xonsh__.ctx["abbrevs"] = dict() if "abbrevs" not in builtins.__xonsh__.ctx.keys():
builtins.__xonsh__.ctx["abbrevs"] = dict()
def expand_abbrev(buffer): def expand_abbrev(buffer):