Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Peter Odding authored September 06, 2010

Showing 2 changed files with 4 additions and 5 deletions. Show diff stats Hide diff stats

  1. 5  autoload.vim
  2. 4  publish.vim
5  autoload.vim
... ...
@@ -1,6 +1,6 @@
1 1
 " Vim script
2 2
 " Author: Peter Odding <peter@peterodding.com>
3  
-" Last Change: September 5, 2010
  3
+" Last Change: September 6, 2010
4 4
 " URL: http://peterodding.com/code/vim/publish/
5 5
 
6 6
 function! publish#resolve_files(directory, pathnames) " {{{1
@@ -20,8 +20,7 @@ function! publish#update_tags(pathnames) " {{{1
20 20
   " Integration with easytags.vim to automatically create/update tags for all
21 21
   " files before they're published, see http://peterodding.com/code/vim/easytags/
22 22
   if exists('g:loaded_easytags')
23  
-    call map(a:pathnames, 'fnameescape(v:val)')
24  
-    execute 'UpdateTags' join(a:pathnames)
  23
+    call easytags#update(1, 0, a:pathnames)
25 24
   endif
26 25
 endfunction
27 26
 
4  publish.vim
... ...
@@ -1,9 +1,9 @@
1 1
 " Vim plug-in
2 2
 " Author: Peter Odding <peter@peterodding.com>
3  
-" Last Change: September 5, 2010
  3
+" Last Change: September 6, 2010
4 4
 " URL: http://peterodding.com/code/vim/publish/
5 5
 " License: MIT
6  
-" Version: 1.7
  6
+" Version: 1.7.1
7 7
 
8 8
 " Support for automatic update using the GLVS plug-in.
9 9
 " GetLatestVimScripts: 2252 1 :AutoInstall: publish.zip

0 notes on commit 87b0305

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