mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 18:31:02 +08:00
parent
c047abfe96
commit
bd468dacfe
|
@ -128,10 +128,10 @@ function! s:airline_toggle()
|
||||||
autocmd FocusGained * unlet! w:airline_lastmode | :call <sid>airline_refresh()
|
autocmd FocusGained * unlet! w:airline_lastmode | :call <sid>airline_refresh()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists("##TerminalOpen") || exists('##TermOpen')
|
if exists("##TerminalOpen")
|
||||||
let event = (has('nvim') ? 'TermOpen' : 'TerminalOpen')
|
" Using the same function with the TermOpen autocommand
|
||||||
" reload current theme for Terminal, forces the terminal extension to be loaded
|
" breaks for Neovim see #1828, looks like a neovim bug.
|
||||||
exe 'autocmd' event '* :call airline#load_theme()'
|
autocmd TerminalOpen * :call airline#load_theme() " reload current theme for Terminal, forces the terminal extension to be loaded
|
||||||
endif
|
endif
|
||||||
autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1
|
autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1
|
||||||
autocmd BufWritePost */autoload/airline/themes/*.vim
|
autocmd BufWritePost */autoload/airline/themes/*.vim
|
||||||
|
|
Loading…
Reference in New Issue
Block a user