mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 10:13:42 +08:00
parent
7d5302b51f
commit
48d9d5e901
|
@ -51,6 +51,10 @@ function! s:on_window_changed(event)
|
||||||
if pumvisible() && (!&previewwindow || g:airline_exclude_preview)
|
if pumvisible() && (!&previewwindow || g:airline_exclude_preview)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
" work around a neovim bug: do not trigger on floating windows
|
||||||
|
if exists("*nvim_win_get_config") && !empty(nvim_win_get_config(0).relative)
|
||||||
|
return
|
||||||
|
endif
|
||||||
" Handle each window only once, since we might come here several times for
|
" Handle each window only once, since we might come here several times for
|
||||||
" different autocommands.
|
" different autocommands.
|
||||||
let l:key = [bufnr('%'), s:active_winnr, winnr('$'), tabpagenr(), &ft]
|
let l:key = [bufnr('%'), s:active_winnr, winnr('$'), tabpagenr(), &ft]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user