main: make sure winnr is available in s:context for check_mode function

This commit is contained in:
Christian Brabandt 2018-10-16 10:25:50 +02:00
parent 61e2c7f86a
commit c44bbc66f5
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ function! airline#statusline(winnr)
endfunction
function! airline#check_mode(winnr)
if !has_key(s:contexts, a:winnr)
return ''
endif
let context = s:contexts[a:winnr]
if get(w:, 'airline_active', 1)