mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-05 08:30:03 +08:00
Handle special characters in part conditions
This commit is contained in:
parent
4dab93470f
commit
908f031f42
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user