mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-08 13:04:44 +08:00
main: make sure winnr is available in s:context for check_mode function
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user