aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2010-06-16 14:41:51 +0200
committerPeter Odding <peter@peterodding.com>2010-06-16 14:41:51 +0200
commitf31333832adf37467ff70218f889f00e77e57027 (patch)
tree2b0858500f4104fd687bc751756d069ea5905e2f
parent8fe189c6e79ae651489a09196de5a8765bb5d23e (diff)
downloadvim-easytags-f31333832adf37467ff70218f889f00e77e57027.tar.gz
Bug fix for E713: Cannot use empty key for Dictionary
-rw-r--r--autoload.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload.vim b/autoload.vim
index efd18ce..1fd0939 100644
--- a/autoload.vim
+++ b/autoload.vim
@@ -1,6 +1,6 @@
" Vim script
" Maintainer: Peter Odding <peter@peterodding.com>
-" Last Change: June 15, 2010
+" Last Change: June 16, 2010
" URL: http://peterodding.com/code/vim/easytags
let s:script = expand('<sfile>:p:~')
@@ -39,7 +39,7 @@ function! easytags#update_cmd(filter_invalid_tags) " {{{2
let filename = s:resolve(expand('%:p'))
let ft_supported = index(easytags#supported_filetypes(), &ft) >= 0
let ft_ignored = g:easytags_ignored_filetypes != '' && &ft =~ g:easytags_ignored_filetypes
- if (ft_supported && !ft_ignored) || a:filter_invalid_tags
+ if (filename != '' && ft_supported && !ft_ignored) || a:filter_invalid_tags
let start = xolox#timer#start()
let tagsfile = easytags#get_tagsfile()
let command = [g:easytags_cmd, '-f', shellescape(tagsfile), '--fields=+l']