Skip to content

Commit 364cfcc

Browse files
committed
Bug fix for issue #90 caused by pull request #84 (async refactor)
See issue 90 on GitHub: #90 This was caused by the async refactor: #84
1 parent bfe2fed commit 364cfcc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

autoload/xolox/easytags.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: August 8, 2014
44
" URL: http://peterodding.com/code/vim/easytags/
55

6-
let g:xolox#easytags#version = '3.6.4'
6+
let g:xolox#easytags#version = '3.6.6'
77
let g:xolox#easytags#default_pattern_prefix = '\C\<'
88
let g:xolox#easytags#default_pattern_suffix = '\>'
99

autoload/xolox/easytags/update.vim

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: June 30, 2014
3+
" Last Change: August 8, 2014
44
" URL: http://peterodding.com/code/vim/easytags/
55

66
" 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
151151
let headers = []
152152
let entries = []
153153
let num_invalid = 0
154-
for line in readfile(a:tagsfile)
154+
if filereadable(a:tagsfile)
155+
let lines = readfile(a:tagsfile)
156+
else
157+
let lines = []
158+
endif
159+
for line in lines
155160
if line =~# '^!_TAG_'
156161
call add(headers, line)
157162
else

0 commit comments

Comments
 (0)