Fixed a typo that might make problems when there is no python available.
This commit is contained in:
parent
bb047c70ca
commit
cecc7aad88
@ -10,7 +10,7 @@ endif
|
||||
" ftdetect/UltiSnips.vim. If the function isn't defined (probably due to
|
||||
" using a copy of vim without python support) it will cause an error anytime a
|
||||
" new file is opened.
|
||||
function! UltiSnips_FileTypeChanged()
|
||||
function! UltiSnips#FileTypeChanged()
|
||||
endfunction
|
||||
|
||||
if !exists("g:UltiSnipsUsePythonVersion")
|
||||
|
@ -17,6 +17,11 @@ command! -nargs=? -complete=customlist,UltiSnips#FileTypeComplete UltiSnipsEdit
|
||||
command! -nargs=1 UltiSnipsAddFiletypes :call UltiSnips#AddFiletypes(<q-args>)
|
||||
|
||||
" Backwards compatible functions. Prefer the ones in autoload/.
|
||||
function! UltiSnips_FileTypeChanged()
|
||||
echoerr "Deprecated UltiSnips_FileTypeChanged called. Please use UltiSnips#FileTypeChanged." | sleep 1
|
||||
return UltiSnips#FileTypeChanged()
|
||||
endfunction
|
||||
|
||||
function! UltiSnips_ExpandSnippet()
|
||||
echoerr "Deprecated UltiSnips_ExpandSnippet called. Please use UltiSnips#ExpandSnippet." | sleep 1
|
||||
return UltiSnips#ExpandSnippet()
|
||||
|
Loading…
Reference in New Issue
Block a user