Stay in container line when unwrapping (for spatial idempotency)

This commit is contained in:
Jeet Sukumaran 2018-05-26 11:03:30 -04:00
parent 93d1a33400
commit 30edd6ba0a

View File

@ -259,6 +259,7 @@ function! argwrap#toggle()
call argwrap#wrapContainer(l:range, l:container, l:arguments, l:wrapBrace, l:tailComma, l:tailCommaBraces, l:tailIndentBraces, l:linePrefix, l:commaFirst, l:commaFirstIndent) call argwrap#wrapContainer(l:range, l:container, l:arguments, l:wrapBrace, l:tailComma, l:tailCommaBraces, l:tailIndentBraces, l:linePrefix, l:commaFirst, l:commaFirstIndent)
else else
call argwrap#unwrapContainer(l:range, l:container, l:arguments, l:padded) call argwrap#unwrapContainer(l:range, l:container, l:arguments, l:padded)
let l:cursor[1] = l:range.lineStart
endif endif
call setpos('.', l:cursor) call setpos('.', l:cursor)