mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
abbrevs: don't overwrite the dictionary if it already exists
This commit is contained in:
parent
e5621ef369
commit
947fa2d0b5
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue