diff options
-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 |