aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2011-05-02 00:57:14 +0200
committerPeter Odding <peter@peterodding.com>2011-05-02 00:57:14 +0200
commit670910e860fa2b74223add86af572bd6299f0b65 (patch)
tree043f5c1deb427ab8d3fce5795e6a4a1fe8e8a6d1 /autoload
parent1ee5eff8289ffbf63d0b035e92a183bbba4aa473 (diff)
downloadvim-easytags-670910e860fa2b74223add86af572bd6299f0b65.tar.gz
Enable updating of project specific tags files
Diffstat (limited to 'autoload')
-rw-r--r--autoload/xolox/easytags.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 8202e8a..15d63f7 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: March 15, 2011
+" Last Change: April 23, 2011
" URL: http://peterodding.com/code/vim/easytags/
let s:script = expand('<sfile>:p:~')
@@ -344,6 +344,12 @@ function! xolox#easytags#add_tagged_file(filename) " {{{2
endfunction
function! xolox#easytags#get_tagsfile() " {{{2
+ if g:easytags_dynamic_files
+ let files = tagfiles()
+ if len(files) > 0
+ return files[0]
+ endif
+ endif
let tagsfile = expand(g:easytags_file)
if filereadable(tagsfile) && filewritable(tagsfile) != 1
let message = "The tags file %s isn't writable!"