Skip to content

Commit

Permalink
Bug fix: Ignore missing tags file when caching tagged files
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jun 13, 2010
1 parent ad3bd15 commit d064e06
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions autoload.vim
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d064e06

Please sign in to comment.