Skip to content
This repository
Browse code

Minor bug fix for xolox#easytags#get_tagsfile()

The plug-in now checks if dynamic tags files are writable.
  • Loading branch information...
commit dc167e4d42265f9d9fbe764570b1b6b199794e98 1 parent 1de4f3d
Peter Odding authored June 13, 2011
4  autoload/xolox/easytags.vim
@@ -349,13 +349,13 @@ function! xolox#easytags#add_tagged_file(filename) " {{{2
349 349
 endfunction
350 350
 
351 351
 function! xolox#easytags#get_tagsfile() " {{{2
  352
+  let tagsfile = expand(g:easytags_file)
352 353
   if g:easytags_dynamic_files
353 354
     let files = tagfiles()
354 355
     if len(files) > 0
355  
-      return files[0]
  356
+      let tagsfile = files[0]
356 357
     endif
357 358
   endif
358  
-  let tagsfile = expand(g:easytags_file)
359 359
   if filereadable(tagsfile) && filewritable(tagsfile) != 1
360 360
     let message = "The tags file %s isn't writable!"
361 361
     throw printf(message, fnamemodify(tagsfile, ':~'))
4  plugin/easytags.vim
@@ -4,7 +4,7 @@
4 4
 " URL: http://peterodding.com/code/vim/easytags/
5 5
 " Requires: Exuberant Ctags (http://ctags.sf.net)
6 6
 " License: MIT
7  
-" Version: 2.2.12
  7
+" Version: 2.2.13
8 8
 
9 9
 " Support for automatic update using the GLVS plug-in.
10 10
 " GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
@@ -76,7 +76,7 @@ endfunction
76 76
 function! s:CheckCtags(name, version)
77 77
   " Not every executable out there named `ctags' is in fact Exuberant Ctags.
78 78
   " This function makes sure it is because the easytags plug-in requires the
79  
-  " --list-languages option.
  79
+  " --list-languages option (and more).
80 80
   if executable(a:name)
81 81
     let command = a:name . ' --version'
82 82
     try

0 notes on commit dc167e4

Please sign in to comment.
Something went wrong with that request. Please try again.