From 60652f8fb3599512138097903528496aa549f9e5 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Wed, 31 May 2023 22:18:28 -0700 Subject: [PATCH] Fix test failure --- test/clangd_tests.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.48.1