From e5f9ccad8eddd8c8faef5ed9888fc83396b6bbbe Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 14 Aug 2017 16:39:48 +0200 Subject: [PATCH] terminal: use mode() to detect terminal mode workaround with index(term_list(), bufnr('')) > -1 not needed anymore, since vim 8.0.936 will correctly return 't' for the mode() function in the terminal. --- autoload/airline.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index 2c16bfa2..1179c2ba 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -152,9 +152,6 @@ function! airline#check_mode(winnr) if get(w:, 'airline_active', 1) let l:m = mode() - if exists("*term_list") && index(term_list(), bufnr('')) > -1 - let l:m = "t" - endif if l:m ==# "i" let l:mode = ['insert'] elseif l:m ==# "R"