- Fixed for abbr.

This commit is contained in:
Shougo Matsushita 2012-11-02 14:18:30 +09:00
parent c3ea9a5d18
commit c24924125b

View File

@ -207,13 +207,14 @@ function! s:initialize_snippet(dict, path, line, pattern, name)"{{{
\ s:get_placeholder_marker_pattern(). '\|'. \ s:get_placeholder_marker_pattern(). '\|'.
\ s:get_mirror_placeholder_marker_pattern(). \ s:get_mirror_placeholder_marker_pattern().
\ '\|\s\+\|\n', ' ', 'g') \ '\|\s\+\|\n', ' ', 'g')
let a:dict.abbr = a:dict.name
else else
let abbr = a:dict.abbr let abbr = a:dict.abbr
endif endif
let dict = { let dict = {
\ 'word' : a:dict.name, 'snip' : a:dict.word, \ 'word' : a:dict.name, 'snip' : a:dict.word,
\ 'abbr' : abbr, \ 'abbr' : a:dict.abbr,
\ 'description' : a:dict.word, \ 'description' : a:dict.word,
\ 'menu' : menu_pattern . abbr, \ 'menu' : menu_pattern . abbr,
\ 'options' : a:dict.options, \ 'options' : a:dict.options,