From f07889c26668b494c5644aaea9dc2e234c3e444c Mon Sep 17 00:00:00 2001 From: petobens Date: Wed, 22 May 2019 10:33:03 -0300 Subject: [PATCH] Extend denite statusline to denite-filter buffer Closes https://github.com/vim-airline/vim-airline/issues/1920 --- autoload/airline/extensions/denite.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/denite.vim b/autoload/airline/extensions/denite.vim index 7274768..f84c55d 100644 --- a/autoload/airline/extensions/denite.vim +++ b/autoload/airline/extensions/denite.vim @@ -12,7 +12,7 @@ let s:denite_ver = (exists('*denite#get_status_mode') ? 2 : 3) " that implements its own insert/normal mode so we have to handle changing the " highlight function! airline#extensions#denite#check_denite_mode(bufnr) - if &filetype != 'denite' + if &filetype !=# 'denite' || &filetype !=# 'denite-filter' return '' endif @@ -30,7 +30,7 @@ function! airline#extensions#denite#check_denite_mode(bufnr) endfunction function! airline#extensions#denite#apply(...) - if &ft == 'denite' + if &filetype ==# 'denite' || &filetype ==# 'denite-filter' let w:airline_skip_empty_sections = 0 call a:1.add_section('airline_a', ' Denite %{airline#extensions#denite#check_denite_mode('.a:2['bufnr'].')}') if s:denite_ver == 3