From 478f28d918924c78fca417962829d373cea79fdd Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Mon, 3 Apr 2023 02:34:15 +0200 Subject: [PATCH] Add test for ":LspDiagLast" --- test/clangd_tests.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index 424ec7a..aaa12a5 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -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 -- 2.48.1