Fix typo causing global settings to be stored as strings.

This commit is contained in:
Will Gray 2011-02-21 13:23:21 -06:00
parent ed8eff420b
commit 0a14a1558e

View File

@ -30,7 +30,7 @@ command! -bar IndentGuidesDisable call s:IndentGuidesDisable()
"
function s:InitVariable(var, value)
if !exists(a:var)
if type(a:var) == type("")
if type(a:value) == type("")
exec 'let ' . a:var . ' = ' . "'" . a:value . "'"
else
exec 'let ' . a:var . ' = ' . a:value