From 8a2cc9f936c757c89c3227304d1b099b09ec9f8c Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 2 Nov 2012 21:11:35 +0900 Subject: [PATCH] - Improved partial match condition. --- autoload/neocomplcache/sources/snippets_complete.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/neocomplcache/sources/snippets_complete.vim b/autoload/neocomplcache/sources/snippets_complete.vim index ef8457d..fe01916 100644 --- a/autoload/neocomplcache/sources/snippets_complete.vim +++ b/autoload/neocomplcache/sources/snippets_complete.vim @@ -82,7 +82,7 @@ function! s:keyword_filter(snippets, cur_keyword_str)"{{{ " Uniq by real_name. let dict = {} - if len(a:cur_keyword_str) > 1 + if len(a:cur_keyword_str) > 1 && a:cur_keyword_str =~ '^\h\w*$' " Use partial match by filter_str. let list = filter(values(a:snippets), \ printf('stridx(v:val.filter_str, %s) >= 0',