Skip to content

Commit

Permalink
Skip unreadable tags files returned by tagfiles() (reported by Hannes…
Browse files Browse the repository at this point in the history
… von Haugwitz)
  • Loading branch information
xolox committed Jul 8, 2011
1 parent ee0966c commit ba99f5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions autoload/xolox/easytags.vim
Expand Up @@ -493,11 +493,15 @@ function! s:cache_tagged_files() " {{{3
" other purposes anyway (so the cache doesn't introduce too much overhead).
let starttime = xolox#misc#timer#start()
for tagsfile in tagfiles()
let fname = s:canonicalize(tagsfile)
let ftime = getftime(fname)
if get(s:known_tagfiles, fname, 0) != ftime
let [headers, entries] = xolox#easytags#read_tagsfile(fname)
call s:cache_tagged_files_in(fname, ftime, entries)
if !filereadable(tagsfile)
call xolox#misc#msg#warn("easytags.vim %s: Skipping unreadable tags file %s!", fname)
else
let fname = s:canonicalize(tagsfile)
let ftime = getftime(fname)
if get(s:known_tagfiles, fname, 0) != ftime
let [headers, entries] = xolox#easytags#read_tagsfile(fname)
call s:cache_tagged_files_in(fname, ftime, entries)
endif
endif
endfor
call xolox#misc#timer#stop("easytags.vim %s: Initialized cache of tagged files in %s.", g:easytags_version, starttime)
Expand Down
2 changes: 1 addition & 1 deletion plugin/easytags.vim
Expand Up @@ -12,7 +12,7 @@ if &cp || exists('g:loaded_easytags')
finish
endif

let g:easytags_version = '2.4.10'
let g:easytags_version = '2.4.11'

" Configuration defaults and initialization. {{{1

Expand Down

0 comments on commit ba99f5f

Please sign in to comment.