Patch 8.2.4315
Problem:    Put in Visual mode not fully tested.
Solution:   Add a few more test cases. (closes #9708)
Files:      src/testdir/test_visual.vim


*** ../vim-8.2.4314/src/testdir/test_visual.vim 2022-01-28 16:01:09.552028335 
+0000
--- src/testdir/test_visual.vim 2022-02-07 10:31:12.773216696 +0000
***************
*** 1369,1386 ****
    call setline(1, ['xxxx'])
    call setreg('"', 'foo')
    call setreg('-', 'bar')
!   normal 1Gvp
!   call assert_equal(@", 'x')
!   call assert_equal(@-, 'x')
  
    if has('clipboard')
      " v_P does not overwrite unnamed register.
      call setline(1, ['xxxx'])
      call setreg('"', 'foo')
      call setreg('-', 'bar')
!     normal 1GvP
!     call assert_equal(@", 'foo')
!     call assert_equal(@-, 'x')
    endif
  
    bwipe!
--- 1369,1420 ----
    call setline(1, ['xxxx'])
    call setreg('"', 'foo')
    call setreg('-', 'bar')
!   normal gg0vp
!   call assert_equal('x', @")
!   call assert_equal('x', @-)
!   call assert_equal('fooxxx', getline(1))
!   normal $vp
!   call assert_equal('x', @")
!   call assert_equal('x', @-)
!   call assert_equal('fooxxx', getline(1))
!   " Test with a different register as unnamed register.
!   call setline(2, ['baz'])
!   normal 2gg0"rD
!   call assert_equal('baz', @")
!   normal gg0vp
!   call assert_equal('f', @")
!   call assert_equal('f', @-)
!   call assert_equal('bazooxxx', getline(1))
!   normal $vp
!   call assert_equal('x', @")
!   call assert_equal('x', @-)
!   call assert_equal('bazooxxf', getline(1))
  
    if has('clipboard')
      " v_P does not overwrite unnamed register.
      call setline(1, ['xxxx'])
      call setreg('"', 'foo')
      call setreg('-', 'bar')
!     normal gg0vP
!     call assert_equal('foo', @")
!     call assert_equal('x', @-)
!     call assert_equal('fooxxx', getline(1))
!     normal $vP
!     call assert_equal('foo', @")
!     call assert_equal('x', @-)
!     call assert_equal('fooxxfoo', getline(1))
!     " Test with a different register as unnamed register.
!     call setline(2, ['baz'])
!     normal 2gg0"rD
!     call assert_equal('baz', @")
!     normal gg0vP
!     call assert_equal('baz', @")
!     call assert_equal('f', @-)
!     call assert_equal('bazooxxfoo', getline(1))
!     normal $vP
!     call assert_equal('baz', @")
!     call assert_equal('o', @-)
!     call assert_equal('bazooxxfobaz', getline(1))
    endif
  
    bwipe!
*** ../vim-8.2.4314/src/version.c       2022-02-06 20:28:08.791367997 +0000
--- src/version.c       2022-02-07 10:32:56.960946059 +0000
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4315,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
18. Your wife drapes a blond wig over your monitor to remind you of what she
    looks like.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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/20220207103405.95A0E1C07B2%40moolenaar.net.

Raspunde prin e-mail lui