Make terminal statusline work for inactive window

This commit is contained in:
Christian Brabandt 2018-11-20 15:48:28 +01:00
parent fa11b8855b
commit 31f5a9307d
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -70,6 +70,11 @@ function! airline#extensions#apply(...)
let w:airline_render_right = 1
endif
if &buftype == 'terminal'
let w:airline_section_x = ''
let w:airline_section_y = ''
endif
if &previewwindow
let w:airline_section_a = 'Preview'
let w:airline_section_b = ''