From f974e0317f549c7cf54fa231ee0501206aed6882 Mon Sep 17 00:00:00 2001 From: Stanislav Seletskiy Date: Fri, 16 Dec 2016 12:10:07 +0700 Subject: [PATCH] fix autotrigger on backspace --- pythonx/UltiSnips/snippet_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/UltiSnips/snippet_manager.py b/pythonx/UltiSnips/snippet_manager.py index e85bae4..fad3ece 100644 --- a/pythonx/UltiSnips/snippet_manager.py +++ b/pythonx/UltiSnips/snippet_manager.py @@ -840,7 +840,7 @@ class SnippetManager(object): if inserted_char == '': before = _vim.buf.line_till_cursor if before and before[-1] == self._last_change[0] or \ - self._last_change[1] != vim.current.line: + self._last_change[1] != vim.current.window.cursor[0]: self._try_expand(autotrigger_only=True) finally: