- Fixed get_source_filetypes.

This commit is contained in:
Shougo Matsushita 2013-07-11 14:45:40 +09:00
parent fe9ba1525d
commit f724d907ef
1 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
"=============================================================================
" FILE: neosnippet.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 03 Jul 2013.
" Last Modified: 11 Jul 2013.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@ -1060,9 +1060,13 @@ function! neosnippet#get_filetype() "{{{
return context_filetype
endfunction"}}}
function! s:get_sources_filetypes(filetype) "{{{
return (exists('*neocomplcache#get_source_filetypes') ?
\ neocomplcache#get_source_filetypes(a:filetype) :
\ [(a:filetype == '') ? 'nothing' : a:filetype]) + ['_']
let filetypes =
\ exists('*neocomplete#get_source_filetypes') ?
\ neocomplete#get_source_filetypes(a:filetype) :
\ exists('*neocomplcache#get_source_filetypes') ?
\ neocomplcache#get_source_filetypes(a:filetype) :
\ [(a:filetype == '') ? 'nothing' : a:filetype]
return filetypes + ['_']
endfunction"}}}
function! neosnippet#edit_complete(arglead, cmdline, cursorpos) "{{{