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\<cr>", 'tx')
!   call feedkeys("/the\<cr>",'tx')
    call assert_equal('the', @/)
!   call feedkeys("/thes\<C-P>\<C-P>\<cr>",'tx')
    call assert_equal('foobar', @/)
  
    " Test 2
--- 17,25 ----
    set noincsearch
    :1
    call feedkeys("/foobar\<cr>", 'tx')
!   call feedkeys("/the\<cr>", 'tx')
    call assert_equal('the', @/)
!   call feedkeys("/thes\<C-P>\<C-P>\<cr>", '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/;\<CR>", "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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202004111637.03BGb6rS018813%40masaka.moolenaar.net.

Raspunde prin e-mail lui