diff --git a/autoload/ale/floating_preview.vim b/autoload/ale/floating_preview.vim index 970a9b30..3e1fabb8 100644 --- a/autoload/ale/floating_preview.vim +++ b/autoload/ale/floating_preview.vim @@ -21,6 +21,8 @@ function! ale#floating_preview#Show(lines, ...) abort else call s:VimShow(a:lines, l:options) endif + + return w:preview.id endfunction function! s:NvimShow(lines, options) abort diff --git a/test/test_floating_preview.vader b/test/test_floating_preview.vader index 43415556..f765f3f8 100644 --- a/test/test_floating_preview.vader +++ b/test/test_floating_preview.vader @@ -12,6 +12,7 @@ Before: function! ale#floating_preview#Show(lines, ...) abort let g:floating_preview_show_called = 1 let g:floated_lines = a:lines + return win_getid() endfunction let g:ale_buffer_info = { diff --git a/test/test_hover.vader b/test/test_hover.vader index 580b8846..db302585 100644 --- a/test/test_hover.vader +++ b/test/test_hover.vader @@ -25,6 +25,7 @@ Before: function! ale#floating_preview#Show(lines, ...) abort let g:floating_preview_show_called = 1 let g:floated_lines = a:lines + return win_getid() endfunction function! ale#lsp_linter#StartLSP(buffer, linter, callback) abort