aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/xolox/easytags.vim2
-rw-r--r--autoload/xolox/easytags/update.vim9
2 files changed, 8 insertions, 3 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 6dd44ef..5a67991 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -3,7 +3,7 @@
" Last Change: August 8, 2014
" URL: http://peterodding.com/code/vim/easytags/
-let g:xolox#easytags#version = '3.6.4'
+let g:xolox#easytags#version = '3.6.6'
let g:xolox#easytags#default_pattern_prefix = '\C\<'
let g:xolox#easytags#default_pattern_suffix = '\>'
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