1
Fork 0

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
1 changed files with 1 additions and 0 deletions

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)
else
call argwrap#unwrapContainer(l:range, l:container, l:arguments, l:padded)
let l:cursor[1] = l:range.lineStart
endif
call setpos('.', l:cursor)