main: make sure winnr is available in s:context for check_mode function
This commit is contained in:
parent
61e2c7f86a
commit
c44bbc66f5
|
@ -153,6 +153,9 @@ function! airline#statusline(winnr)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#check_mode(winnr)
|
function! airline#check_mode(winnr)
|
||||||
|
if !has_key(s:contexts, a:winnr)
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
let context = s:contexts[a:winnr]
|
let context = s:contexts[a:winnr]
|
||||||
|
|
||||||
if get(w:, 'airline_active', 1)
|
if get(w:, 'airline_active', 1)
|
||||||
|
|
Loading…
Reference in New Issue