From 019d158a0287b7ac4faf3057ca63ab856fa78094 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sun, 22 Sep 2013 19:13:08 -0400 Subject: [PATCH] active winnr should always be set. --- autoload/airline/extensions.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 521ce641..814318f4 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -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", "")}'