From 343925a5c8d267bf75b68e3341143e9556364066 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 2 Nov 2012 14:57:17 +0900 Subject: [PATCH] - Fixed for abbr. --- autoload/neocomplcache/sources/snippets_complete.vim | 6 +++--- autoload/neosnippet.vim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/neocomplcache/sources/snippets_complete.vim b/autoload/neocomplcache/sources/snippets_complete.vim index 8a6a33f..9c0303a 100644 --- a/autoload/neocomplcache/sources/snippets_complete.vim +++ b/autoload/neocomplcache/sources/snippets_complete.vim @@ -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( diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 7d65551..18acbe5 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -214,7 +214,7 @@ function! s:initialize_snippet(dict, path, line, pattern, name)"{{{ let dict = { \ 'word' : a:dict.name, 'snip' : a:dict.word, - \ 'abbr' : a:dict.abbr, + \ 'filter_str' : a:dict.abbr, \ 'description' : a:dict.word, \ 'menu' : menu_pattern . abbr, \ 'options' : a:dict.options,