To: vim_dev@googlegroups.com Subject: Patch 8.2.0542 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0542 Problem: No test for E386. Solution: Add a test. (Dominique Pelle, closes #5911) Files: src/testdir/test_search.vim *** ../vim-8.2.0541/src/testdir/test_search.vim 2020-04-11 17:09:28.324426586 +0200 --- src/testdir/test_search.vim 2020-04-11 18:36:18.559194858 +0200 *************** *** 17,25 **** set noincsearch :1 call feedkeys("/foobar\", 'tx') ! call feedkeys("/the\",'tx') call assert_equal('the', @/) ! call feedkeys("/thes\\\",'tx') call assert_equal('foobar', @/) " Test 2 --- 17,25 ---- set noincsearch :1 call feedkeys("/foobar\", 'tx') ! call feedkeys("/the\", 'tx') call assert_equal('the', @/) ! call feedkeys("/thes\\\", 'tx') call assert_equal('foobar', @/) " Test 2 *************** *** 1351,1357 **** endfunc func Test_one_error_msg() ! " This was also giving an internal error call assert_fails('call search(" \\((\\v[[=P=]]){185}+ ")', 'E871:') endfunc --- 1351,1357 ---- endfunc func Test_one_error_msg() ! " This was also giving an internal error call assert_fails('call search(" \\((\\v[[=P=]]){185}+ ")', 'E871:') endfunc *************** *** 1402,1407 **** --- 1402,1412 ---- 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() *** ../vim-8.2.0541/src/version.c 2020-04-11 18:01:10.933802350 +0200 --- src/version.c 2020-04-11 18:35:17.151359481 +0200 *************** *** 740,741 **** --- 740,743 ---- { /* Add new patch number below this line */ + /**/ + 542, /**/ -- ERIC IDLE PLAYED: THE DEAD COLLECTOR, MR BINT (A VILLAGE NE'ER-DO -WELL VERY KEEN ON BURNING WITCHES), SIR ROBIN, THE GUARD WHO DOESN'T HICOUGH BUT TRIES TO GET THINGS STRAIGHT, CONCORDE (SIR LAUNCELOT'S TRUSTY STEED), ROGER THE SHRUBBER (A SHRUBBER), BROTHER MAYNARD "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///