Permalink
Browse files

Bug fix: Ignore missing tags file when caching tagged files

  • Loading branch information...
xolox committed Jun 13, 2010
1 parent ad3bd15 commit d064e0639f488b975af12aad01040493e265804c
Showing with 8 additions and 3 deletions.
  1. +8 −3 autoload.vim
View
@@ -1,6 +1,6 @@
" Vim script
" Maintainer: Peter Odding <peter@peterodding.com>
" Last Change: June 13, 2010
" Last Change: June 14, 2010
" URL: http://peterodding.com/code/vim/easytags
" Public interface through (automatic) commands. {{{1
@@ -246,8 +246,13 @@ endfunction
function! s:cache_tagged_files() " {{{2
if !exists('s:tagged_files')
let tagsfile = easytags#get_tagsfile()
let [header, entries] = easytags#read_tagsfile(tagsfile)
call s:set_tagged_files(entries)
try
let [header, entries] = easytags#read_tagsfile(tagsfile)
call s:set_tagged_files(entries)
catch /\<E484\>/
" Ignore missing tags file.
call s:set_tagged_files([])
endtry
endif
endfunction

0 comments on commit d064e06

Please sign in to comment.