diff --git a/autoload/airline.vim b/autoload/airline.vim index 585a5e4..4f04b39 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -150,7 +150,7 @@ function! airline#check_mode(winnr) let context = s:contexts[a:winnr] let is_term = 0 - if has("terminal") + if exists("*term_list") let is_term = index(term_list(), bufnr('')) > -1 endif