- Fixed for abbr.

This commit is contained in:
Shougo Matsushita
2012-11-02 14:57:17 +09:00
parent e367cd6330
commit 343925a5c8
2 changed files with 4 additions and 4 deletions

View File

@@ -83,10 +83,10 @@ function! s:keyword_filter(snippets, cur_keyword_str)"{{{
let dict = {}
if len(a:cur_keyword_str) > 1
" Use partial match by abbr.
" Use partial match by filter_str.
let list = filter(values(a:snippets),
\ printf('v:val.abbr =~ %s',
\ string(neocomplcache#keyword_escape(a:cur_keyword_str))))
\ printf('v:val.filter_str =~ %s',
\ string(neocomplcache#keyword_escape(a:cur_keyword_str))))
else
" Use default filter.
let list = neocomplcache#keyword_filter(