From 47a1bfda12bececc75e5be92489b7768a1363d84 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sat, 16 Feb 2013 23:03:22 +0900 Subject: [PATCH] - Fixed s:get_sources_filetypes() error. --- autoload/neosnippet.vim | 2 +- doc/neosnippet.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index cabddd2..8778610 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -1050,7 +1050,7 @@ endfunction"}}} function! s:get_sources_filetypes(filetype) "{{{ return (exists('*neocomplcache#get_source_filetypes') ? \ neocomplcache#get_source_filetypes(a:filetype) : - \ [a:filetype]) + ['_'] + \ [(a:filetype == '') ? 'nothing' : a:filetype]) + ['_'] endfunction"}}} function! neosnippet#edit_complete(arglead, cmdline, cursorpos) "{{{ diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 04ed32d..24d6909 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -724,6 +724,7 @@ CHANGELOG *neosnippet-changelog* - Added sh snippet. - Added html snippet. - Delete simple markers when InsertLeave. +- Fixed s:get_sources_filetypes() error. 2013-02-03 - Improved php snippets.