# HG changeset patch # User Bram Moolenaar # Date 1586623503 -7200 # Node ID 9f5758ee0b10d7bfd56d1f2ab4de234f2726c675 # Parent 1cd7f3ea9339f6a1d9482a5f5540be0964a7bf64 patch 8.2.0542: no test for E386 Commit: https://github.com/vim/vim/commit/8832a3457831707286dd2d9252ba14a5f9fd4c60 Author: Bram Moolenaar Date: Sat Apr 11 18:36:38 2020 +0200 patch 8.2.0542: no test for E386 Problem: No test for E386. Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/5911) diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -17,9 +17,9 @@ func Test_search_cmdline() set noincsearch :1 call feedkeys("/foobar\", 'tx') - call feedkeys("/the\",'tx') + call feedkeys("/the\", 'tx') call assert_equal('the', @/) - call feedkeys("/thes\\\",'tx') + call feedkeys("/thes\\\", 'tx') call assert_equal('foobar', @/) " Test 2 @@ -1351,7 +1351,7 @@ func Test_large_hex_chars2() endfunc func Test_one_error_msg() - " This was also giving an internal error + " This was also giving an internal error call assert_fails('call search(" \\((\\v[[=P=]]){185}+ ")', 'E871:') endfunc @@ -1402,6 +1402,11 @@ func Test_search_errors() call assert_fails("call search('pat', 'b', 1, [])", 'E745:') call assert_fails("call search('pat', 'ns')", 'E475:') call assert_fails("call search('pat', 'mr')", 'E475:') + + new + call setline(1, ['foo', 'bar']) + call assert_fails('call feedkeys("/foo/;/bar/;\", "tx")', 'E386:') + bwipe! endfunc func Test_search_display_pattern() diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 542, +/**/ 541, /**/ 540,