- Fixed error.

This commit is contained in:
Shougo Matsushita 2012-02-24 13:57:00 +09:00
parent 105485ac1d
commit dc607f8468
1 changed files with 3 additions and 3 deletions

View File

@ -298,9 +298,9 @@ function! s:set_snippet_pattern(dict)"{{{
\ '<Snip> ' : '[Snip] '
let abbr = has_key(a:dict, 'abbr')? a:dict.abbr :
\substitute(a:dict.word,
\ '\${\d\+\%(:.\{-}\)\?\\\@<!}\|\$<\d\+\%(:.\{-}\)\?\\\@<!>\|'
\ '\$\d\+\|<\%(\\n\|\\t\)>\|\s\+', ' ', 'g')
\ substitute(a:dict.word,
\ '\${\d\+\%(:.\{-}\)\?\\\@<!}\|\$<\d\+\%(:.\{-}\)\?\\\@<!>\|'.
\ '\$\d\+\|<\%(\\n\|\\t\)>\|\s\+', ' ', 'g')
let abbr = (g:neocomplcache_max_keyword_width >= 0 &&
\ len(abbr) > g:neocomplcache_max_keyword_width)?
\ printf(abbr_pattern, abbr, abbr[-8:]) : abbr