Fixing argument wrapping

This commit is contained in:
Alex Yatskov 2014-12-02 12:22:50 +09:00
parent a5f67f6213
commit 164ca21b71

View File

@ -83,7 +83,7 @@ function! argwrap#extractContainerArgText(range)
if l:extractStart < l:extractEnd if l:extractStart < l:extractEnd
let l:extract = l:lineText[l:extractStart : l:extractEnd - 1] let l:extract = l:lineText[l:extractStart : l:extractEnd - 1]
let l:extract = substitute(l:extract, '^\\s\\+', '', 'g') let l:extract = substitute(l:extract, '^\s\+', '', 'g')
let l:extract = substitute(l:extract, ',$', ', ', 'g') let l:extract = substitute(l:extract, ',$', ', ', 'g')
let l:text .= l:extract let l:text .= l:extract
endif endif