Stay in container line when unwrapping (for spatial idempotency)
This commit is contained in:
parent
93d1a33400
commit
30edd6ba0a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user