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.
This commit is contained in:
parent
3535243c50
commit
e5f9ccad8e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user