From d674676c7d3a56f38b3a9ad02e9752e4f93e161e Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 28 Jan 2015 23:10:23 +0900 Subject: [PATCH] No longer support passing arguments to toggle function --- autoload/argwrap.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/argwrap.vim b/autoload/argwrap.vim index 2ae217f..261c217 100644 --- a/autoload/argwrap.vim +++ b/autoload/argwrap.vim @@ -194,11 +194,11 @@ function! argwrap#unwrapContainer(range, container, arguments, padded) exec printf('silent %d,%dd_', a:range.lineStart + 1, a:range.lineEnd) endfunction -function! argwrap#toggle(...) +function! argwrap#toggle() if exists('g:argwrap_wrap_style') let l:style = g:argwrap_wrap_style else - let l:style = a:0 == 0 ? 'default' : a:1 + let l:style = 'default' endif if exists('g:argwrap_padded_braces')