Do not map keys if 'g:_uspy' could not be set
This commit is contained in:
parent
c57c717e33
commit
3208654c4e
@ -1,6 +1,11 @@
|
||||
call UltiSnips#bootstrap#Bootstrap()
|
||||
|
||||
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
|
||||
if g:UltiSnipsExpandTrigger == g:UltiSnipsJumpForwardTrigger
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user