From e7df18840d7133c3b69143481b8bbb45589eadb1 Mon Sep 17 00:00:00 2001 From: David Strobach Date: Fri, 27 Mar 2020 21:52:17 +0100 Subject: [PATCH] abbrevs: only trigger completion if the word is preceded by space --- xontrib/abbrevs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xontrib/abbrevs.py b/xontrib/abbrevs.py index 15f87dadb..5fa2518c6 100644 --- a/xontrib/abbrevs.py +++ b/xontrib/abbrevs.py @@ -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)