Better handling of spaces during unwrapping.

This commit is contained in:
Alex Yatskov 2015-03-12 15:45:46 +09:00
parent 93284608cc
commit a899077bf5

View File

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