]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
In recent Vim versions, prop_list() doesn't return the length item for virtual text
authorYegappan Lakshmanan <yegappan@yahoo.com>
Fri, 1 Dec 2023 15:39:16 +0000 (07:39 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Fri, 1 Dec 2023 15:39:16 +0000 (07:39 -0800)
test/clangd_tests.vim

index 97da941833fd392130fde3456cf41bee4ec4b689..d977e91ffc8025fb77e77648d54950096356673b 100644 (file)
@@ -1691,7 +1691,7 @@ def g:Test_DiagVirtualText()
   g:LspOptionsSet({showDiagWithVirtualText: true})
   p = prop_list(1, {end_lnum: line('$')})
   assert_equal(1, p->len())
-  assert_equal([3, 8, 'LspDiagVirtualTextError'], [p[0].lnum, p[0].length, p[0].type])
+  assert_equal([3, 'LspDiagVirtualTextError'], [p[0].lnum, p[0].type])
 
   g:LspOptionsSet({showDiagWithVirtualText: false})
   p = prop_list(1, {end_lnum: line('$')})