From 30edd6ba0a654d22db62359e4bca9d174f1eead5 Mon Sep 17 00:00:00 2001 From: Jeet Sukumaran Date: Sat, 26 May 2018 11:03:30 -0400 Subject: [PATCH] Stay in container line when unwrapping (for spatial idempotency) --- autoload/argwrap.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/argwrap.vim b/autoload/argwrap.vim index 90fbdc0..af416e1 100644 --- a/autoload/argwrap.vim +++ b/autoload/argwrap.vim @@ -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)