From d54613d2dd077f8b330d9bd6ebebe7f18be684cd Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sun, 30 Jul 2017 18:55:52 +0200 Subject: [PATCH] Check for existence of term_list() fixes #1518 --- autoload/airline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index 585a5e4c..4f04b391 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