From c24924125b741a58d1406a01fb6e094d484a8123 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 2 Nov 2012 14:18:30 +0900 Subject: [PATCH] - Fixed for abbr. --- autoload/neosnippet.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 9e2be24..7d65551 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -207,15 +207,16 @@ function! s:initialize_snippet(dict, path, line, pattern, name)"{{{ \ s:get_placeholder_marker_pattern(). '\|'. \ s:get_mirror_placeholder_marker_pattern(). \ '\|\s\+\|\n', ' ', 'g') + let a:dict.abbr = a:dict.name else let abbr = a:dict.abbr endif let dict = { \ 'word' : a:dict.name, 'snip' : a:dict.word, - \ 'abbr' : abbr, + \ 'abbr' : a:dict.abbr, \ 'description' : a:dict.word, - \ 'menu' : menu_pattern.abbr, + \ 'menu' : menu_pattern . abbr, \ 'options' : a:dict.options, \ 'action__path' : a:path, 'action__line' : a:line, \ 'action__pattern' : a:pattern, 'real_name' : a:name,