aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autoload.vim10
-rw-r--r--easytags.vim4
2 files changed, 7 insertions, 7 deletions
diff --git a/autoload.vim b/autoload.vim
index 1cb04ee..6195466 100644
--- a/autoload.vim
+++ b/autoload.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: August 11, 2010
+" Last Change: September 6, 2010
" URL: http://peterodding.com/code/vim/easytags/
let s:script = expand('<sfile>:p:~')
@@ -14,7 +14,7 @@ function! easytags#autoload() " {{{2
if pathname != ''
let tags_outdated = getftime(pathname) > getftime(easytags#get_tagsfile())
if tags_outdated || !easytags#file_has_tags(pathname)
- call easytags#update(1, 0)
+ call easytags#update(1, 0, [])
endif
endif
" Apply highlighting of tags in global tags file to current buffer?
@@ -36,13 +36,13 @@ function! easytags#autoload() " {{{2
endtry
endfunction
-function! easytags#update(silent, filter_tags, ...) " {{{2
+function! easytags#update(silent, filter_tags, filenames) " {{{2
try
let starttime = xolox#timer#start()
- let cfile = s:check_cfile(a:silent, a:filter_tags, a:0 > 0)
+ let cfile = s:check_cfile(a:silent, a:filter_tags, !empty(a:filenames))
let tagsfile = easytags#get_tagsfile()
let firstrun = !filereadable(tagsfile)
- let cmdline = s:prep_cmdline(cfile, tagsfile, firstrun, a:000)
+ let cmdline = s:prep_cmdline(cfile, tagsfile, firstrun, a:filenames)
let output = s:run_ctags(starttime, cfile, tagsfile, firstrun, cmdline)
if !firstrun
let num_filtered = s:filter_merge_tags(a:filter_tags, tagsfile, output)
diff --git a/easytags.vim b/easytags.vim
index c3e00b0..3c0da74 100644
--- a/easytags.vim
+++ b/easytags.vim
@@ -4,7 +4,7 @@
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT
-" Version: 2.1.5
+" Version: 2.1.6
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
@@ -150,7 +150,7 @@ call s:RegisterTagsFile()
" The :UpdateTags and :HighlightTags commands. {{{1
-command! -bar -bang -nargs=* -complete=file UpdateTags call easytags#update(0, <q-bang> == '!', <f-args>)
+command! -bar -bang -nargs=* -complete=file UpdateTags call easytags#update(0, <q-bang> == '!', [<f-args>])
command! -bar HighlightTags call easytags#highlight()
" Automatic commands. {{{1