Include handling for expansion from list_snippets

This commit is contained in:
mMontu 2013-10-05 15:59:21 -03:00
parent a32473a5d4
commit 6d7f52bb6e
2 changed files with 2 additions and 6 deletions

View File

@ -136,18 +136,12 @@ function! CompensateForPUM()
endif
endfunction
function! UltiSnips_ExpandSnippet()
if g:UltiSnipsClearJumpTrigger == 1
call UltiSnips_MapInnerKeys()
endif
exec g:_uspy "UltiSnips_Manager.expand()"
return ""
endfunction
function! UltiSnips_ExpandSnippetOrJump()
call CompensateForPUM()
if g:UltiSnipsClearJumpTrigger == 1
call UltiSnips_MapInnerKeys()
endif
exec g:_uspy "UltiSnips_Manager.expand_or_jump()"
return ""
endfunction

View File

@ -880,6 +880,8 @@ class SnippetManager(object):
""" Expands the given snippet, and handles everything
that needs to be done with it.
"""
if _vim.eval("g:UltiSnipsClearJumpTrigger") == "1":
_vim.command("call UltiSnips_MapInnerKeys()")
# Adjust before, maybe the trigger is not the complete word
text_before = before
if snippet.matched: