From: Yegappan Lakshmanan Date: Thu, 1 Jun 2023 05:18:28 +0000 (-0700) Subject: Fix test failure X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=60652f8fb3599512138097903528496aa549f9e5;p=vim-lsp.git Fix test failure --- diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index 6177618..2d58fc7 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -464,14 +464,14 @@ def g:Test_LspDiag_Multi() assert_equal([1, 5], [line('.'), col('.')]) var ids = popup_list() assert_equal(1, ids->len()) - assert_match('Incompatible pointer to integer', getbufoneline(ids[0]->winbufnr(), 1)) + assert_match('Incompatible pointer to integer', getbufline(ids[0]->winbufnr(), 1, '$')[0]) popup_clear() cursor(1, 6) :LspDiagHere assert_equal([1, 9], [line('.'), col('.')]) ids = popup_list() assert_equal(1, ids->len()) - assert_match('Initializer element is not', getbufoneline(ids[0]->winbufnr(), 1)) + assert_match('Initializer element is not', getbufline(ids[0]->winbufnr(), 1, '$')[0]) popup_clear() # Line without diagnostics