active winnr should always be set.

This commit is contained in:
Bailey Ling 2013-09-22 19:13:08 -04:00
parent 245fe31f80
commit 019d158a02
1 changed files with 2 additions and 2 deletions

View File

@ -57,12 +57,12 @@ endfunction
let s:active_winnr = -1
function! airline#extensions#apply(...)
let s:active_winnr = winnr()
if s:is_excluded_window()
return -1
endif
let s:active_winnr = winnr()
if &buftype == 'quickfix'
let w:airline_section_a = '%q'
let w:airline_section_b = '%{get(w:, "quickfix_title", "")}'