Skip to content

Commit

Permalink
In recent Vim versions, prop_list() doesn't return the length item fo…
Browse files Browse the repository at this point in the history
…r virtual text
  • Loading branch information
yegappan committed Dec 1, 2023
1 parent ad380a8 commit 5e715ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/clangd_tests.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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('$')})
Expand Down

0 comments on commit 5e715ca

Please sign in to comment.