From 92a53f748ea4e226a3d63405038fc415b853ace7 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 28 May 2013 18:18:50 +0900 Subject: [PATCH] - Fixed neosnippet source. --- autoload/neocomplete/sources/neosnippet.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/neocomplete/sources/neosnippet.vim b/autoload/neocomplete/sources/neosnippet.vim index 8d3b089..13a0a34 100644 --- a/autoload/neocomplete/sources/neosnippet.vim +++ b/autoload/neocomplete/sources/neosnippet.vim @@ -28,7 +28,7 @@ let s:save_cpo = &cpo set cpo&vim let s:source = { - \ 'name' : 'snippets_complete', + \ 'name' : 'neosnippet', \ 'kind' : 'manual', \ 'min_pattern_length' : \ g:neocomplcache_auto_completion_start_length, @@ -47,7 +47,7 @@ function! s:source.get_complete_position(context) "{{{ endfunction"}}} function! s:source.gather_candidates(context) "{{{ - let candidates = neosnippet#get_snippets() + let candidates = values(neosnippet#get_snippets()) for snippet in candidates let snippet.dup = 1