From 9b7c1b822bdaf1f0dd7b84fed352dea88946ef74 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 23 Feb 2010 14:11:49 +0900 Subject: [PATCH] avoid to error. --- zencoding.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/zencoding.vim b/zencoding.vim index 435c36d..472774d 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -1076,11 +1076,13 @@ function! ZenCompleteTag(findstart, base) call add(res, item) endif endfor - for item in values(s:zen_settings[type]['aliases']) - if stridx(item, a:base) != -1 - call add(res, item) - endif - endfor + if has_key(s:zen_settings[type], 'aliases') + for item in values(s:zen_settings[type]['aliases']) + if stridx(item, a:base) != -1 + call add(res, item) + endif + endfor + endif return res endif endfunction