Merge pull request #18 from jeetsukumaran/master
Seamless Toggling of Wrapped/Unwrapped States
This commit is contained in:
commit
f0f360e86a
@ -257,8 +257,10 @@ function! argwrap#toggle()
|
|||||||
let l:container = argwrap#extractContainer(l:range)
|
let l:container = argwrap#extractContainer(l:range)
|
||||||
if l:range.lineStart == l:range.lineEnd
|
if l:range.lineStart == l:range.lineEnd
|
||||||
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)
|
||||||
|
let l:cursor[1] = l:range.lineStart + 1
|
||||||
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