Check for existence of term_list()

fixes #1518
This commit is contained in:
Christian Brabandt 2017-07-30 18:55:52 +02:00
parent 846d85aaa1
commit d54613d2dd
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -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