You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is your airline configuration: default
if you are using terminal:
terminal: kitty
$TERM variable: xterm-256color
color configuration (:set t_Co?):
if you are using Neovim:
does it happen in Vim: yes
actual behavior
After using call airline#add_statusline_func() customizations appear on the new terminal window, but disappear if you <C-w> out of the window.
As a workaround I am disabling airline's own term extension (via g:airline#extension#term#enabled = 0) in my vimrc. It works as expected with airline's term extension disabled.
Here is the statusline func I was using to test. You can drop it in init.vim to reproduce.
function!MyPluginThing(...)
return"!!! I AM CUSTOM !!!"endfunctionfunction!MyPlugin(...)
letw:airline_section_a='MyPlugin3'letw:airline_section_b='%f'letw:airline_section_c='%{MyPluginThing()}'letg:airline_variable_referenced_in_statusline='foo'endfunctioncallairline#add_statusline_func('MyPlugin')
expected behavior
Terminal windows honor the airline#add_statusline_func() at all times.
screen shot (if possible)
Note that the !!! I AM CUSTOM !!! string is originally present in the terminal window, but after I move in and out of the window it disappears.
The text was updated successfully, but these errors were encountered:
I see this also with default statusline functions. Section B for example shows git information in Terminal mode but then loses that information switching between windows.
environment
aa773f5cdfeba1ecb8ae5b55d9ab5fc817f0951d
if you are using terminal:
xterm-256color
if you are using Neovim:
actual behavior
After using
call airline#add_statusline_func()
customizations appear on the new terminal window, but disappear if you<C-w>
out of the window.As a workaround I am disabling airline's own term extension (via
g:airline#extension#term#enabled = 0
) in my vimrc. It works as expected with airline's term extension disabled.Here is the statusline func I was using to test. You can drop it in
init.vim
to reproduce.expected behavior
Terminal windows honor the
airline#add_statusline_func()
at all times.screen shot (if possible)
Note that the
!!! I AM CUSTOM !!!
string is originally present in the terminal window, but after I move in and out of the window it disappears.The text was updated successfully, but these errors were encountered: