From 9b7bf9e98f06ece595fed7a3ff53ecce89797a53 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 11 Jul 2020 22:14:59 +0200 Subject: patch 8.2.1183: assert_fails() checks the last error message Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior. --- src/testdir/test_normal.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testdir/test_normal.vim') diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim index a4dc61945..68aae534e 100644 --- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -1384,7 +1384,7 @@ func Test_normal23_K() call setline(1, '---') call assert_fails('normal! ggv2lK', 'E349:') call setline(1, ['abc', 'xyz']) - call assert_fails("normal! gg2lv2h\", 'E426:') + call assert_fails("normal! gg2lv2h\", 'E433:') call assert_beeps("normal! ggVjK") " clean up -- cgit v1.2.1