From 908f031f425fc26f6fd249edfbe6d73253916e28 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Mon, 22 Sep 2014 01:44:23 -0700 Subject: [PATCH] Handle special characters in part conditions --- autoload/airline/section.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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