diff options
author | Peter Odding <peter@peterodding.com> | 2010-06-10 21:47:21 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2010-06-10 21:47:21 +0200 |
commit | 43a704c57a151ea1018f8532a02b5afbd30d2d48 (patch) | |
tree | 8343ea1062c484c1cdc5619901f1ca0f8c77a159 /autoload.vim | |
parent | ac315a019ea96302d3ac7166d7f5febb34ee38ca (diff) | |
download | vim-easytags-43a704c57a151ea1018f8532a02b5afbd30d2d48.tar.gz |
Minor logic tweaks, might improve performance
Diffstat (limited to 'autoload.vim')
-rw-r--r-- | autoload.vim | 4 |
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 |