]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Add test for ":LspDiagLast"
authorAndreas Louv <andreas@louv.dk>
Mon, 3 Apr 2023 00:34:15 +0000 (02:34 +0200)
committerAndreas Louv <andreas@louv.dk>
Mon, 3 Apr 2023 01:04:09 +0000 (03:04 +0200)
test/clangd_tests.vim

index 424ec7afc3ca3f6875f7566498880e8b11063d96..aaa12a511b60096110b442adc07928c4e6b44778 100644 (file)
@@ -385,6 +385,9 @@ def g:Test_LspDiag_Multi()
   assert_equal([1, 5], [line('.'), col('.')])
   assert_equal('', execute('LspDiagNext'))
   assert_equal([1, 9], [line('.'), col('.')])
+  cursor(1, 1)
+  assert_equal('', execute('LspDiagLast'))
+  assert_equal([2, 9], [line('.'), col('.')])
   popup_clear()
 
   # Test for :LspDiagHere on a line with multiple diagnostics