No longer support passing arguments to toggle function

This commit is contained in:
Alex Yatskov 2015-01-28 23:10:23 +09:00
parent 913bce3e94
commit d674676c7d

View File

@ -194,11 +194,11 @@ function! argwrap#unwrapContainer(range, container, arguments, padded)
exec printf('silent %d,%dd_', a:range.lineStart + 1, a:range.lineEnd) exec printf('silent %d,%dd_', a:range.lineStart + 1, a:range.lineEnd)
endfunction endfunction
function! argwrap#toggle(...) function! argwrap#toggle()
if exists('g:argwrap_wrap_style') if exists('g:argwrap_wrap_style')
let l:style = g:argwrap_wrap_style let l:style = g:argwrap_wrap_style
else else
let l:style = a:0 == 0 ? 'default' : a:1 let l:style = 'default'
endif endif
if exists('g:argwrap_padded_braces') if exists('g:argwrap_padded_braces')