mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-05 06:34:13 +08:00
Make skip_empty variable overridable per window
The denite extension functions return the content of some buffer-local variables. Those variables are not defined, the first time the they are accessed and therefore, the statusline is not updated later when g:airline_skip_empty_sections is set. So disable this variable in this window, by setting the w:airline_skip_empty_section=0 variable in the denite window. closes #1454
This commit is contained in:
@@ -19,6 +19,7 @@ endfunction
|
||||
|
||||
function! airline#extensions#denite#apply(...)
|
||||
if &ft == 'denite'
|
||||
let w:airline_skip_empty_sections = 0
|
||||
call a:1.add_section('airline_a', ' Denite %{airline#extensions#denite#check_denite_mode('.a:2['bufnr'].')}')
|
||||
call a:1.add_section('airline_c', ' %{denite#get_status_sources()}')
|
||||
call a:1.split()
|
||||
|
||||
Reference in New Issue
Block a user