Removed unnedded code. (#963)

As I am reading the code, this branch can never be taken.
This commit is contained in:
Holger Rapp 2018-04-09 16:37:33 +02:00 committed by UltiBot
parent 64289acdb1
commit 36f5618745
2 changed files with 1 additions and 4 deletions

View File

@ -277,13 +277,10 @@ class SnippetManager(object):
"""Called whenever the cursor moved.""" """Called whenever the cursor moved."""
self._should_update_textobjects = False self._should_update_textobjects = False
if not self._csnippets and self._inner_state_up:
self._teardown_inner_state()
self._vstate.remember_position() self._vstate.remember_position()
if _vim.eval('mode()') not in 'in': if _vim.eval('mode()') not in 'in':
return return
if self._ignore_movements: if self._ignore_movements:
self._ignore_movements = False self._ignore_movements = False
return return

View File

@ -131,7 +131,7 @@ class Backspace_TabStop_NotZero(_VimTest):
wanted = 'AA BBB' wanted = 'AA BBB'
# End: Pressing BS in TabStop #}}} # End: Pressing BS in TabStop #}}}
class UpdateModifiedSnippetWithoutCursorMove(_VimTest): class UpdateModifiedSnippetWithoutCursorMove1(_VimTest):
skip_if = check_required_vim_version skip_if = check_required_vim_version
snippets = ('test', '${1:one}(${2:xxx})${3:three}') snippets = ('test', '${1:one}(${2:xxx})${3:three}')
keys = 'test' + EX + 'aaaaa' + JF + BS + JF + '3333' keys = 'test' + EX + 'aaaaa' + JF + BS + JF + '3333'