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:
parent
73b4e4233c
commit
63a75aca2a
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user