From 36f5618745dcbcf7640b60625b266a9aaaf9e43a Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Mon, 9 Apr 2018 16:37:33 +0200 Subject: [PATCH] Removed unnedded code. (#963) As I am reading the code, this branch can never be taken. --- pythonx/UltiSnips/snippet_manager.py | 3 --- test/test_Editing.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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'