Skip to content

Commit

Permalink
Fixed easytags#update() to overcome argument limit
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
xolox committed Sep 5, 2010
1 parent be98f43 commit 87b0305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions autoload.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
" Last Change: September 5, 2010
" Last Change: September 6, 2010
" URL: http://peterodding.com/code/vim/publish/

function! publish#resolve_files(directory, pathnames) " {{{1
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions publish.vim
@@ -1,9 +1,9 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
" 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
Expand Down

0 comments on commit 87b0305

Please sign in to comment.