aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/xolox/easytags.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index df109be..10bb650 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -349,13 +349,13 @@ function! xolox#easytags#add_tagged_file(filename) " {{{2
endfunction
function! xolox#easytags#get_tagsfile() " {{{2
+ let tagsfile = expand(g:easytags_file)
if g:easytags_dynamic_files
let files = tagfiles()
if len(files) > 0
- return files[0]
+ let tagsfile = 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!"
throw printf(message, fnamemodify(tagsfile, ':~'))