aboutsummaryrefslogtreecommitdiffstats
path: root/autoload.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload.vim')
-rw-r--r--autoload.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/autoload.vim b/autoload.vim
index ac48f4a..b536908 100644
--- a/autoload.vim
+++ b/autoload.vim
@@ -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