diff options
author | Leon <github@adigitoleo.dissimulo.com> | 2022-12-31 05:47:43 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-30 18:47:43 +0000 |
commit | 1ee863002a1b0a0dff1bf3238e2ee0c02518eee3 (patch) | |
tree | aa1f70026b8df81b9a5d7b2cae130098ff421196 | |
parent | ef6715ee41f7de570e270456a261fd005c67884e (diff) | |
download | ale-1ee863002a1b0a0dff1bf3238e2ee0c02518eee3.zip |
Fix #4408 - Trigger floating preview autocommand on BufWinLeave and WinScrolled (#4409)
-rw-r--r-- | autoload/ale/floating_preview.vim | 4 |
1 files 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 <buffer> ++once call s:NvimClose() + autocmd CursorMoved,TabLeave,WinLeave,BufWinLeave,WinScrolled,InsertEnter <buffer> ++once call s:NvimClose() else - autocmd CursorMoved,TabLeave,WinLeave <buffer> ++once call s:NvimClose() + autocmd CursorMoved,TabLeave,WinLeave,BufWinLeave,WinScrolled <buffer> ++once call s:NvimClose() endif augroup END |