aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Karkat <swdev@ingo-karkat.de>2014-06-23 17:59:33 +0200
committerIngo Karkat <swdev@ingo-karkat.de>2014-06-23 17:59:33 +0200
commit74f5ca5f12adf1ab2d294aacb2ce5fb216938ac7 (patch)
tree58e7644106dfc20bf52cef5d4185b45e699ec2e2
parent27c29aa6a6b558b2f917a0c661fb4804bcdeb05e (diff)
downloadvim-easytags-74f5ca5f12adf1ab2d294aacb2ce5fb216938ac7.tar.gz
FIX: Avoid error about empty Dictionary key.
I had a degenerate tags file that had *two* tabs separating the tag from the filespec column; parsing that yields an empty filespec, which caused E713. There used to be an explicit check for that; with your recent refactorings, one instance of that check was lost. Here it is again!
-rw-r--r--autoload/xolox/easytags/update.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/xolox/easytags/update.vim b/autoload/xolox/easytags/update.vim
index eca86c3..82f49de 100644
--- a/autoload/xolox/easytags/update.vim
+++ b/autoload/xolox/easytags/update.vim
@@ -254,6 +254,9 @@ endfunction
function! s:create_cache() " {{{1
let cache = {'canonicalize_cache': {}, 'exists_cache': {}}
function cache.canonicalize(pathname) dict
+ if a:pathname == ''
+ return ''
+ endif
if !has_key(self, a:pathname)
let self[a:pathname] = xolox#easytags#utils#canonicalize(a:pathname)
endif