Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 87b0305bd27d4ee3715790cddc76cc2cfead7c14 1 parent be98f43
@xolox authored
Showing with 4 additions and 5 deletions.
  1. +2 −3 autoload.vim
  2. +2 −2 publish.vim
View
5 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
@@ -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
View
4 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

0 comments on commit 87b0305

Please sign in to comment.
Something went wrong with that request. Please try again.