diff --git a/pythonx/UltiSnips/snippet_manager.py b/pythonx/UltiSnips/snippet_manager.py index 3d2a2a5..3e38125 100644 --- a/pythonx/UltiSnips/snippet_manager.py +++ b/pythonx/UltiSnips/snippet_manager.py @@ -277,13 +277,10 @@ class SnippetManager(object): """Called whenever the cursor moved.""" self._should_update_textobjects = False - if not self._csnippets and self._inner_state_up: - self._teardown_inner_state() self._vstate.remember_position() if _vim.eval('mode()') not in 'in': return - if self._ignore_movements: self._ignore_movements = False return diff --git a/test/test_Editing.py b/test/test_Editing.py index c7d60af..9133980 100644 --- a/test/test_Editing.py +++ b/test/test_Editing.py @@ -131,7 +131,7 @@ class Backspace_TabStop_NotZero(_VimTest): wanted = 'AA BBB' # End: Pressing BS in TabStop #}}} -class UpdateModifiedSnippetWithoutCursorMove(_VimTest): +class UpdateModifiedSnippetWithoutCursorMove1(_VimTest): skip_if = check_required_vim_version snippets = ('test', '${1:one}(${2:xxx})${3:three}') keys = 'test' + EX + 'aaaaa' + JF + BS + JF + '3333'