]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Fix test failure
authorYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 1 Jun 2023 05:18:28 +0000 (22:18 -0700)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 1 Jun 2023 05:18:28 +0000 (22:18 -0700)
test/clangd_tests.vim

index 6177618c26eaded73dcc955113fde5fb80aa10a2..2d58fc70195cb0047c4c8d94719e614eb9f14f87 100644 (file)
@@ -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