aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2011-06-13 02:06:48 +0200
committerPeter Odding <peter@peterodding.com>2011-06-13 02:06:48 +0200
commitdc167e4d42265f9d9fbe764570b1b6b199794e98 (patch)
treeb1a61eb54fb483bd40b56d2083e09a995c2e64bb
parent1de4f3d23be591f54bc515f593083bc01f8bdf71 (diff)
downloadvim-easytags-dc167e4d42265f9d9fbe764570b1b6b199794e98.tar.gz
Minor bug fix for xolox#easytags#get_tagsfile()
The plug-in now checks if dynamic tags files are writable.
-rw-r--r--autoload/xolox/easytags.vim4
-rw-r--r--plugin/easytags.vim4
2 files changed, 4 insertions, 4 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, ':~'))
diff --git a/plugin/easytags.vim b/plugin/easytags.vim
index 9f57c38..d3edde3 100644
--- a/plugin/easytags.vim
+++ b/plugin/easytags.vim
@@ -4,7 +4,7 @@
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT
-" Version: 2.2.12
+" Version: 2.2.13
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
@@ -76,7 +76,7 @@ endfunction
function! s:CheckCtags(name, version)
" Not every executable out there named `ctags' is in fact Exuberant Ctags.
" This function makes sure it is because the easytags plug-in requires the
- " --list-languages option.
+ " --list-languages option (and more).
if executable(a:name)
let command = a:name . ' --version'
try