From 5e715cafa0f1652eff4bc171c98d949cbce6da67 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Fri, 1 Dec 2023 07:39:16 -0800 Subject: [PATCH] In recent Vim versions, prop_list() doesn't return the length item for virtual text --- test/clangd_tests.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index 97da9418..d977e91f 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -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('$')})