Fixed a typo that might make problems when there is no python available.

This commit is contained in:
Holger Rapp 2014-02-19 22:54:37 +01:00
parent bb047c70ca
commit cecc7aad88
2 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@ endif
" ftdetect/UltiSnips.vim. If the function isn't defined (probably due to " 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 " using a copy of vim without python support) it will cause an error anytime a
" new file is opened. " new file is opened.
function! UltiSnips_FileTypeChanged() function! UltiSnips#FileTypeChanged()
endfunction endfunction
if !exists("g:UltiSnipsUsePythonVersion") if !exists("g:UltiSnipsUsePythonVersion")

View File

@ -17,6 +17,11 @@ command! -nargs=? -complete=customlist,UltiSnips#FileTypeComplete UltiSnipsEdit
command! -nargs=1 UltiSnipsAddFiletypes :call UltiSnips#AddFiletypes(<q-args>) command! -nargs=1 UltiSnipsAddFiletypes :call UltiSnips#AddFiletypes(<q-args>)
" Backwards compatible functions. Prefer the ones in autoload/. " 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() function! UltiSnips_ExpandSnippet()
echoerr "Deprecated UltiSnips_ExpandSnippet called. Please use UltiSnips#ExpandSnippet." | sleep 1 echoerr "Deprecated UltiSnips_ExpandSnippet called. Please use UltiSnips#ExpandSnippet." | sleep 1
return UltiSnips#ExpandSnippet() return UltiSnips#ExpandSnippet()