From 43a704c57a151ea1018f8532a02b5afbd30d2d48 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Thu, 10 Jun 2010 21:47:21 +0200 Subject: Minor logic tweaks, might improve performance --- autoload.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload.vim') diff --git a/autoload.vim b/autoload.vim index 21f8bf2..0e2c366 100644 --- a/autoload.vim +++ b/autoload.vim @@ -53,7 +53,7 @@ function! easytags#update_cmd(filter_invalid_tags) " {{{1 call s:update_tagged_files(lines) let filters = [] if ft_supported && !ft_ignored - let filename_pattern = '\s' . xolox#escape#pattern(filename) . '\s' + let filename_pattern = '\t' . xolox#escape#pattern(filename) . '\t' call add(filters, 'v:val !~ filename_pattern') endif if a:filter_invalid_tags @@ -61,7 +61,7 @@ function! easytags#update_cmd(filter_invalid_tags) " {{{1 endif let filter = 'v:val =~ "^!_TAG_" || (' . join(filters, ' && ') . ')' let filtered = filter(copy(lines), filter) - if lines != filtered + if len(lines) != len(filtered) if writefile(filtered, tagsfile) != 0 throw "Failed to write filtered tags file!" endif -- cgit v1.2.3