Handle special characters in part conditions

This commit is contained in:
Kevin Ballard 2014-09-22 01:44:23 -07:00
parent 4dab93470f
commit 908f031f42

View File

@ -49,7 +49,7 @@ function! s:create(parts, append)
endif endif
if exists('part.condition') if exists('part.condition')
let partval = substitute(partval, '{', '{'.(part.condition).' ? ', '') let partval = substitute(partval, '{', '\="{".(part.condition)." ? "', '')
let partval = substitute(partval, '}', ' : ""}', '') let partval = substitute(partval, '}', ' : ""}', '')
endif endif