diff --git a/autoload/unite/sources/ultisnips.vim b/autoload/unite/sources/ultisnips.vim index 747ae37..58b94c0 100644 --- a/autoload/unite/sources/ultisnips.vim +++ b/autoload/unite/sources/ultisnips.vim @@ -31,7 +31,7 @@ function! s:unite_source.action_table.expand.func(candidate) return '' endfunction -function! s:unite_source.longest_snippet(snippet_list) +function! s:unite_source.get_longest_snippet_len(snippet_list) let longest = 0 for snip in items(a:snippet_list) if strlen(snip['word']) > longest @@ -46,7 +46,7 @@ function! s:unite_source.gather_candidates(args, context) \ 'ultisnips', 'unite__is_marked': 0, 'kind': 'command', 'is_matched': 1, \ 'is_multiline': 0} let snippet_list = UltiSnips#SnippetsInCurrentScope() - let max_len = s:unite_source.longest_snippet(snippet_list) + let max_len = s:unite_source.get_longest_snippet_len(snippet_list) let canditates = [] for snip in items(snippet_list) let curr_val = copy(default_val)