aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/xolox/easytags/update.vim
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2014-08-08 23:20:28 +0200
committerPeter Odding <peter@peterodding.com>2014-08-08 23:20:28 +0200
commit364cfcc514f1cd3386221aaa79bf9f12b85b6574 (patch)
treeee3847e7163f6bccd254a5f96071a1959d335b40 /autoload/xolox/easytags/update.vim
parentbfe2fed9189be40e729c27aba29544015882b83e (diff)
downloadvim-easytags-364cfcc514f1cd3386221aaa79bf9f12b85b6574.tar.gz
Bug fix for issue #90 caused by pull request #84 (async refactor)
See issue 90 on GitHub: https://github.com/xolox/vim-easytags/issues/90 This was caused by the async refactor: https://github.com/xolox/vim-easytags/pull/84
Diffstat (limited to 'autoload/xolox/easytags/update.vim')
-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