- Fixed get_filetype().

This commit is contained in:
Shougo Matsushita 2013-05-28 19:24:58 +09:00
parent abd51a57da
commit 9ee144e773

View File

@ -1051,9 +1051,14 @@ function! neosnippet#get_runtime_snippets_directory() "{{{
return copy(s:runtime_dir)
endfunction"}}}
function! neosnippet#get_filetype() "{{{
return s:exists_context_filetype ?
\ context_filetype#get_filetype() :
\ (&filetype == '' ? 'nothing' : &filetype)
let context_filetype =
\ s:exists_context_filetype ?
\ context_filetype#get_filetype() : &filetype
if context_filetype == ''
let context_filetype = 'nothing'
endif
return context_filetype
endfunction"}}}
function! s:get_sources_filetypes(filetype) "{{{
return (exists('*neocomplcache#get_source_filetypes') ?