From cecc7aad882b56550ae52e3feea8b690ed330ab3 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Wed, 19 Feb 2014 22:54:37 +0100 Subject: [PATCH] Fixed a typo that might make problems when there is no python available. --- autoload/UltiSnips.vim | 2 +- plugin/UltiSnips.vim | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/autoload/UltiSnips.vim b/autoload/UltiSnips.vim index f46d2ad..c09d5c3 100644 --- a/autoload/UltiSnips.vim +++ b/autoload/UltiSnips.vim @@ -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") diff --git a/plugin/UltiSnips.vim b/plugin/UltiSnips.vim index b6cb5ff..0f9617f 100644 --- a/plugin/UltiSnips.vim +++ b/plugin/UltiSnips.vim @@ -17,6 +17,11 @@ command! -nargs=? -complete=customlist,UltiSnips#FileTypeComplete UltiSnipsEdit command! -nargs=1 UltiSnipsAddFiletypes :call UltiSnips#AddFiletypes() " 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()