highlighter: do not consider 0 to be empty

fixes #1531
This commit is contained in:
Christian Brabandt 2017-08-20 22:45:54 +02:00
parent e5f9ccad8e
commit 470e9870f1
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -149,7 +149,7 @@ endfunction
function! s:Get(dict, key, prefix) function! s:Get(dict, key, prefix)
let res=get(a:dict, a:key, '') let res=get(a:dict, a:key, '')
if empty(res) if res is ''
return '' return ''
else else
return a:prefix. res return a:prefix. res