From 87b0305bd27d4ee3715790cddc76cc2cfead7c14 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Mon, 6 Sep 2010 00:51:21 +0200 Subject: [PATCH] Fixed easytags#update() to overcome argument limit The easytags#update() function in my easytags.vim plug-in previously used the variable argument list notation `...' but I just found out [the hard way] that this only supports up to 20 arguments. Therefor I've now changed easytags#update() to receive a list of zero or more filenames as its third argument. --- autoload.vim | 5 ++--- publish.vim | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/autoload.vim b/autoload.vim index 105e160..8b8f8bd 100644 --- a/autoload.vim +++ b/autoload.vim @@ -1,6 +1,6 @@ " Vim script " Author: Peter Odding -" Last Change: September 5, 2010 +" Last Change: September 6, 2010 " URL: http://peterodding.com/code/vim/publish/ function! publish#resolve_files(directory, pathnames) " {{{1 @@ -20,8 +20,7 @@ function! publish#update_tags(pathnames) " {{{1 " Integration with easytags.vim to automatically create/update tags for all " files before they're published, see http://peterodding.com/code/vim/easytags/ if exists('g:loaded_easytags') - call map(a:pathnames, 'fnameescape(v:val)') - execute 'UpdateTags' join(a:pathnames) + call easytags#update(1, 0, a:pathnames) endif endfunction diff --git a/publish.vim b/publish.vim index c889530..a94f4fb 100644 --- a/publish.vim +++ b/publish.vim @@ -1,9 +1,9 @@ " Vim plug-in " Author: Peter Odding -" Last Change: September 5, 2010 +" Last Change: September 6, 2010 " URL: http://peterodding.com/code/vim/publish/ " License: MIT -" Version: 1.7 +" Version: 1.7.1 " Support for automatic update using the GLVS plug-in. " GetLatestVimScripts: 2252 1 :AutoInstall: publish.zip