Fixing conflicting options #5
This commit is contained in:
parent
4057c955bc
commit
cfe10c45a8
@ -164,11 +164,14 @@ function! argwrap#wrapContainer(range, container, arguments, wrapBrace, tailComm
|
|||||||
|
|
||||||
for l:index in range(l:argCount)
|
for l:index in range(l:argCount)
|
||||||
let l:text = a:container.indent . a:linePrefix . a:arguments[l:index]
|
let l:text = a:container.indent . a:linePrefix . a:arguments[l:index]
|
||||||
if l:index < l:argCount - 1 || a:tailComma
|
let l:last = l:index == l:argCount - 1
|
||||||
|
|
||||||
|
if !l:last || a:tailComma
|
||||||
let l:text .= ','
|
let l:text .= ','
|
||||||
elseif !a:wrapBrace
|
end
|
||||||
|
if l:last && !a:wrapBrace
|
||||||
let l:text .= a:container.suffix
|
let l:text .= a:container.suffix
|
||||||
endif
|
end
|
||||||
|
|
||||||
call append(l:line, l:text)
|
call append(l:line, l:text)
|
||||||
let l:line += 1
|
let l:line += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user