use string()

This commit is contained in:
Andy Wokula
2017-11-01 20:45:36 +01:00
parent 5fce03e259
commit c5bf6053f3

View File

@@ -28,7 +28,7 @@ let nerdcommenter#loaded = 1
" 1 if the var is set, 0 otherwise
function s:InitVariable(var, value)
if !exists(a:var)
execute 'let ' . a:var . ' = ' . "'" . a:value . "'"
execute 'let ' . a:var . ' = ' . string(a:value)
return 1
endif
return 0