From 48d9d5e901b3d914428094f5a5235aba95ca138b Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 3 Jun 2019 10:35:58 +0200 Subject: [PATCH] neovim: Do not react on BufWinEnter for floating windows closes #1930 --- plugin/airline.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index 8c6ecc86..9bfbeb1c 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -51,6 +51,10 @@ function! s:on_window_changed(event) if pumvisible() && (!&previewwindow || g:airline_exclude_preview) return 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 " different autocommands. let l:key = [bufnr('%'), s:active_winnr, winnr('$'), tabpagenr(), &ft]