Define UltiSnips#FileTypeChanged always
This is called via ftdetect/UltiSnips.vim, and needs to be defined also if UltiSnips fails to initialize, e.g. because of missing Python support.
This commit is contained in:
commit
cf2c473a8e
@ -1,5 +1,12 @@
|
|||||||
if exists("b:did_autoload_ultisnips") || !exists("g:_uspy")
|
if exists("b:did_autoload_ultisnips") || !exists("g:_uspy")
|
||||||
finish
|
" Define no-op function, called via ftdetect/UltiSnips.vim.
|
||||||
|
" TODO(sirver): Add a test for that using a bad g:UltiSnipsPythonVersion
|
||||||
|
" setting. Without this fix moving the cursor will spam errors, with this
|
||||||
|
" it should not.
|
||||||
|
function! UltiSnips#FileTypeChanged()
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
finish
|
||||||
endif
|
endif
|
||||||
let b:did_autoload_ultisnips = 1
|
let b:did_autoload_ultisnips = 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user