fix bufferline detection
This commit is contained in:
parent
2b896c8481
commit
abb86d2ef3
@ -69,7 +69,7 @@ function! s:update_statusline(active)
|
|||||||
let sl.="%{g:airline_enable_fugitive&&exists('g:loaded_fugitive')? g:airline_fugitive_prefix.fugitive#head():''}\ "
|
let sl.="%{g:airline_enable_fugitive&&exists('g:loaded_fugitive')? g:airline_fugitive_prefix.fugitive#head():''}\ "
|
||||||
let sl.=l:info_sep_color."%{g:airline_left_sep}"
|
let sl.=l:info_sep_color."%{g:airline_left_sep}"
|
||||||
if a:active
|
if a:active
|
||||||
let sl.=l:status_color."\ %{exists('g:bufferline_loaded')?bufferline#generate_string():'%f%m'}\ "
|
let sl.=l:status_color.(exists('g:bufferline_loaded')?"\ %{bufferline#generate_string()}\ ":"\ %f%m\ ")
|
||||||
else
|
else
|
||||||
let sl.=" ".bufname(winbufnr(winnr()))
|
let sl.=" ".bufname(winbufnr(winnr()))
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user