From 63a75aca2afc9b53a83ab7ab33ffac7946a56aea Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 12 Jun 2019 11:36:47 +0200 Subject: [PATCH] term: Make terminal extension work on entering it does not work with Neovim since TermOpen is not used (see #1828 for the bug) --- autoload/airline/extensions/term.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/term.vim b/autoload/airline/extensions/term.vim index 46ee0b4..42ee7f9 100644 --- a/autoload/airline/extensions/term.vim +++ b/autoload/airline/extensions/term.vim @@ -4,7 +4,7 @@ scriptencoding utf-8 function! airline#extensions#term#apply(...) - if &buftype == 'terminal' + if &buftype == 'terminal' || bufname('%')[0] == '!' let spc = g:airline_symbols.space let name=get(g:airline_mode_map, 't', 't')