fix qf and preview not getting their styles applied.
This commit is contained in:
parent
8c6efa5698
commit
5fe642841e
|
@ -55,6 +55,8 @@ function! s:is_excluded_window()
|
|||
endfunction
|
||||
|
||||
function! s:apply_window_overrides()
|
||||
call airline#extensions#clear_window_overrides()
|
||||
|
||||
if &buftype == 'quickfix'
|
||||
let w:airline_section_a = 'Quickfix'
|
||||
let w:airline_section_b = ''
|
||||
|
|
|
@ -7,12 +7,14 @@ function! s:override_left_only(section1, section2)
|
|||
let w:airline_left_only = 1
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#apply_window_overrides()
|
||||
function! airline#extensions#clear_window_overrides()
|
||||
silent! unlet w:airline_left_only
|
||||
for section in s:sections
|
||||
silent! unlet w:airline_section_{section}
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#apply_window_overrides()
|
||||
if &ft == 'netrw'
|
||||
call s:override_left_only('netrw', '%f')
|
||||
elseif &ft == 'unite'
|
||||
|
|
Loading…
Reference in New Issue