Fix completed snippet

This commit is contained in:
Shougo Matsushita 2015-08-25 08:11:37 +09:00
parent 5c9655eb75
commit c76a668f40

View File

@ -55,7 +55,7 @@ function! neosnippet#handlers#_complete_done() "{{{
" Make snippet arguments " Make snippet arguments
let cnt = 1 let cnt = 1
let snippet = item.word let snippet = item.word
if snippet !~ '($' if snippet !~ '()\?$'
let snippet .= '(' let snippet .= '('
endif endif
for arg in split(matchstr(abbr, '(\zs.\{-}\ze)'), '[^[]\zs\s*,\s*') for arg in split(matchstr(abbr, '(\zs.\{-}\ze)'), '[^[]\zs\s*,\s*')