fix newb mistake. resolves #125.
This commit is contained in:
parent
aabb061470
commit
44db0e0c70
@ -106,10 +106,10 @@ function! s:get_statusline(winnr, active)
|
|||||||
let sl.=l:mode_color
|
let sl.=l:mode_color
|
||||||
let sl.=s:get_section(a:winnr, 'z')
|
let sl.=s:get_section(a:winnr, 'z')
|
||||||
|
|
||||||
" if a:active
|
if a:active
|
||||||
" let warngroup = airline#themes#exec_highlight_separator('Al2', 'warningmsg')
|
let warngroup = airline#themes#exec_highlight_separator('Al2', 'warningmsg')
|
||||||
" let sl.='%(%#'.warngroup.'#'.g:airline_right_sep.'%#warningmsg#'.s:getwinvar(a:winnr, 'airline_section_warning', '').'%)'
|
let sl.='%(%#'.warngroup.'#'.g:airline_right_sep.'%#warningmsg#'.s:getwinvar(a:winnr, 'airline_section_warning', '').'%)'
|
||||||
" endif
|
endif
|
||||||
endif
|
endif
|
||||||
return sl
|
return sl
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -49,9 +49,6 @@ function! airline#themes#exec_highlight_separator(from, to)
|
|||||||
let l:from = airline#themes#get_highlight(a:from)
|
let l:from = airline#themes#get_highlight(a:from)
|
||||||
let l:to = airline#themes#get_highlight(a:to)
|
let l:to = airline#themes#get_highlight(a:to)
|
||||||
let group = a:from.'_to_'.a:to
|
let group = a:from.'_to_'.a:to
|
||||||
exec printf('highlight %s guifg=%s guibg=%s ctermfg=%s ctermbg=%s',
|
call airline#exec_highlight(group, [ l:to[1], l:from[1], l:to[3], l:from[3] ])
|
||||||
\ group,
|
|
||||||
\ l:to[1], l:from[1],
|
|
||||||
\ l:to[3], l:from[3])
|
|
||||||
return group
|
return group
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user