term: Make terminal extension work on entering it

does not work with Neovim since TermOpen is not used (see #1828 for the
bug)
This commit is contained in:
Christian Brabandt 2019-06-12 11:36:47 +02:00
parent 73b4e4233c
commit 63a75aca2a
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -4,7 +4,7 @@
scriptencoding utf-8 scriptencoding utf-8
function! airline#extensions#term#apply(...) function! airline#extensions#term#apply(...)
if &buftype == 'terminal' if &buftype == 'terminal' || bufname('%')[0] == '!'
let spc = g:airline_symbols.space let spc = g:airline_symbols.space
let name=get(g:airline_mode_map, 't', 't') let name=get(g:airline_mode_map, 't', 't')