aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/xolox/easytags.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/xolox/easytags.vim')
-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!"