From 1ee863002a1b0a0dff1bf3238e2ee0c02518eee3 Mon Sep 17 00:00:00 2001 From: Leon Date: Sat, 31 Dec 2022 05:47:43 +1100 Subject: Fix #4408 - Trigger floating preview autocommand on BufWinLeave and WinScrolled (#4409) --- autoload/ale/floating_preview.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ale/floating_preview.vim b/autoload/ale/floating_preview.vim index b6deec4c..c2bf5b6b 100644 --- a/autoload/ale/floating_preview.vim +++ b/autoload/ale/floating_preview.vim @@ -52,9 +52,9 @@ function! s:NvimShow(lines, options) abort autocmd! if g:ale_close_preview_on_insert - autocmd CursorMoved,TabLeave,WinLeave,InsertEnter ++once call s:NvimClose() + autocmd CursorMoved,TabLeave,WinLeave,BufWinLeave,WinScrolled,InsertEnter ++once call s:NvimClose() else - autocmd CursorMoved,TabLeave,WinLeave ++once call s:NvimClose() + autocmd CursorMoved,TabLeave,WinLeave,BufWinLeave,WinScrolled ++once call s:NvimClose() endif augroup END -- cgit v1.2.3