From c44bbc66f5df6f35d2eb4db3d8ae546ccb647a79 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 16 Oct 2018 10:25:50 +0200 Subject: [PATCH] main: make sure winnr is available in s:context for check_mode function --- autoload/airline.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/airline.vim b/autoload/airline.vim index a7888d1..7d09181 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -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)