Fixed an issue that caused a large number of errors in the 'tag' plugin if a tagfile was empty.

This commit is contained in:
Seth Fowler 2012-05-01 12:05:03 -07:00 committed by Kien N
parent e61e7d5b80
commit f8f8f56fae

View File

@ -42,6 +42,7 @@ endf
fu! s:filter(tags) fu! s:filter(tags)
let [nr, alltags] = [0, a:tags] let [nr, alltags] = [0, a:tags]
wh 0 < 1 wh 0 < 1
if empty(alltags) | brea | en
if alltags[nr] =~ '^!' && alltags[nr] !~ '^!_TAG_' if alltags[nr] =~ '^!' && alltags[nr] !~ '^!_TAG_'
let nr += 1 let nr += 1
con con