aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2010-06-10 21:47:21 +0200
committerPeter Odding <peter@peterodding.com>2010-06-10 21:47:21 +0200
commit43a704c57a151ea1018f8532a02b5afbd30d2d48 (patch)
tree8343ea1062c484c1cdc5619901f1ca0f8c77a159
parentac315a019ea96302d3ac7166d7f5febb34ee38ca (diff)
downloadvim-easytags-43a704c57a151ea1018f8532a02b5afbd30d2d48.tar.gz
Minor logic tweaks, might improve performance
-rw-r--r--autoload.vim4
1 files changed, 2 insertions, 2 deletions
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