address issue #691: try to fix non-utf encoding
This commit is contained in:
parent
f974e0317f
commit
9dd41b92f5
@ -839,7 +839,8 @@ class SnippetManager(object):
|
|||||||
try:
|
try:
|
||||||
if inserted_char == '':
|
if inserted_char == '':
|
||||||
before = _vim.buf.line_till_cursor
|
before = _vim.buf.line_till_cursor
|
||||||
if before and before[-1] == self._last_change[0] or \
|
if before and \
|
||||||
|
before[-1].encode('ascii') == self._last_change[0] or \
|
||||||
self._last_change[1] != vim.current.window.cursor[0]:
|
self._last_change[1] != vim.current.window.cursor[0]:
|
||||||
self._try_expand(autotrigger_only=True)
|
self._try_expand(autotrigger_only=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user