mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
abbrevs: only trigger completion if the word is preceded by space
This commit is contained in:
parent
78de276032
commit
e7df18840d
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def expand_abbrev(buffer):
|
|||
if abbrevs is None:
|
||||
return
|
||||
document = buffer.document
|
||||
word = document.get_word_before_cursor()
|
||||
word = document.get_word_before_cursor(WORD=True)
|
||||
if word in abbrevs.keys():
|
||||
partial = document.text[: document.cursor_position]
|
||||
startix, endix, quote = check_for_partial_string(partial)
|
||||
|
|
Loading…
Add table
Reference in a new issue