mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 14:04:53 +02:00
wrong quoting of condition
This commit is contained in:
parent
a69834f7dc
commit
73a1238205
@ -45,8 +45,8 @@ endfunction
|
|||||||
" deactivate it, unless it is fixed (7.4.1511)
|
" deactivate it, unless it is fixed (7.4.1511)
|
||||||
if s:section_use_groups && (v:version >= 704 || (v:version >= 703 && has('patch81')))
|
if s:section_use_groups && (v:version >= 704 || (v:version >= 703 && has('patch81')))
|
||||||
function! s:add_section(builder, context, key)
|
function! s:add_section(builder, context, key)
|
||||||
let condition = '(a:key is# "warning" || a:key is# "error")'.
|
let condition = (a:key is# "warning" || a:key is# "error") &&
|
||||||
\ '&& (v:version == 704 && !has("patch1511"))'
|
\ (v:version == 704 && !has("patch1511"))
|
||||||
" i have no idea why the warning section needs special treatment, but it's
|
" i have no idea why the warning section needs special treatment, but it's
|
||||||
" needed to prevent separators from showing up
|
" needed to prevent separators from showing up
|
||||||
if ((a:key == 'error' || a:key == 'warning') && empty(s:get_section(a:context.winnr, a:key)))
|
if ((a:key == 'error' || a:key == 'warning') && empty(s:get_section(a:context.winnr, a:key)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user