From 74f5ca5f12adf1ab2d294aacb2ce5fb216938ac7 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Mon, 23 Jun 2014 17:59:33 +0200 Subject: 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! --- autoload/xolox/easytags/update.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'autoload') 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 -- cgit v1.2.3