Patch 8.2.4315

7 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 7, 2022, 5:34:11 AM2/7/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages