Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from jeetsukumaran/master
Browse files Browse the repository at this point in the history
Seamless Toggling of Wrapped/Unwrapped States
  • Loading branch information
FooSoft authored May 26, 2018
2 parents 93d1a33 + 2ca601e commit f0f360e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/argwrap.vim
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,10 @@ function! argwrap#toggle()
let l:container = argwrap#extractContainer(l:range)
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)
let l:cursor[1] = l:range.lineStart + 1
else
call argwrap#unwrapContainer(l:range, l:container, l:arguments, l:padded)
let l:cursor[1] = l:range.lineStart
endif

call setpos('.', l:cursor)
Expand Down

0 comments on commit f0f360e

Please sign in to comment.