aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/xolox/easytags
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/xolox/easytags')
-rw-r--r--autoload/xolox/easytags/update.vim9
1 files changed, 7 insertions, 2 deletions
diff --git a/autoload/xolox/easytags/update.vim b/autoload/xolox/easytags/update.vim
index 3706169..d35a338 100644
--- a/autoload/xolox/easytags/update.vim
+++ b/autoload/xolox/easytags/update.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 30, 2014
+" Last Change: August 8, 2014
" URL: http://peterodding.com/code/vim/easytags/
" This Vim auto-load script contains the parts of vim-easytags that are used
@@ -151,7 +151,12 @@ function! xolox#easytags#update#read_tagsfile(tagsfile) " {{{1
let headers = []
let entries = []
let num_invalid = 0
- for line in readfile(a:tagsfile)
+ if filereadable(a:tagsfile)
+ let lines = readfile(a:tagsfile)
+ else
+ let lines = []
+ endif
+ for line in lines
if line =~# '^!_TAG_'
call add(headers, line)
else