Include handling for expansion from list_snippets
This commit is contained in:
parent
a32473a5d4
commit
6d7f52bb6e
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user