mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-05-17 22:09:40 +08:00
active winnr should always be set.
This commit is contained in:
@@ -57,12 +57,12 @@ endfunction
|
|||||||
|
|
||||||
let s:active_winnr = -1
|
let s:active_winnr = -1
|
||||||
function! airline#extensions#apply(...)
|
function! airline#extensions#apply(...)
|
||||||
|
let s:active_winnr = winnr()
|
||||||
|
|
||||||
if s:is_excluded_window()
|
if s:is_excluded_window()
|
||||||
return -1
|
return -1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:active_winnr = winnr()
|
|
||||||
|
|
||||||
if &buftype == 'quickfix'
|
if &buftype == 'quickfix'
|
||||||
let w:airline_section_a = '%q'
|
let w:airline_section_a = '%q'
|
||||||
let w:airline_section_b = '%{get(w:, "quickfix_title", "")}'
|
let w:airline_section_b = '%{get(w:, "quickfix_title", "")}'
|
||||||
|
|||||||
Reference in New Issue
Block a user