Do not map keys if 'g:_uspy' could not be set

This commit is contained in:
Daniel Hahler 2014-04-09 19:30:00 +02:00
parent c57c717e33
commit 3208654c4e

View File

@ -1,6 +1,11 @@
call UltiSnips#bootstrap#Bootstrap() call UltiSnips#bootstrap#Bootstrap()
function! UltiSnips#map_keys#MapKeys() function! UltiSnips#map_keys#MapKeys()
if !exists('g:_uspy')
" Do not map keys if bootstrapping failed (e.g. no Python).
return
endif
" Map the keys correctly " Map the keys correctly
if g:UltiSnipsExpandTrigger == g:UltiSnipsJumpForwardTrigger if g:UltiSnipsExpandTrigger == g:UltiSnipsJumpForwardTrigger