diff --git a/autoload/airline/section.vim b/autoload/airline/section.vim index 0baf077..06d930f 100644 --- a/autoload/airline/section.vim +++ b/autoload/airline/section.vim @@ -49,7 +49,7 @@ function! s:create(parts, append) endif if exists('part.condition') - let partval = substitute(partval, '{', '{'.(part.condition).' ? ', '') + let partval = substitute(partval, '{', '\="{".(part.condition)." ? "', '') let partval = substitute(partval, '}', ' : ""}', '') endif