Patch 8.2.3936
Problem: No proper test for maintaining change mark in diff mode.
Solution: Run the test with internal and external diff. (Sean Dewar,
closes #9424)
Files: src/testdir/test_diffmode.vim
*** ../vim-8.2.3935/src/testdir/test_diffmode.vim 2021-12-28
18:29:28.633385576 +0000
--- src/testdir/test_diffmode.vim 2021-12-29 16:41:13.790305964 +0000
***************
*** 1189,1210 ****
endfunc
func Test_diff_maintains_change_mark()
! enew!
! call setline(1, ['a', 'b', 'c', 'd'])
! diffthis
! new
! call setline(1, ['a', 'b', 'c', 'e'])
! " Set '[ and '] marks
! 2,3yank
! call assert_equal([2, 3], [line("'["), line("']")])
! " Verify they aren't affected by the implicit diff
! diffthis
! call assert_equal([2, 3], [line("'["), line("']")])
! " Verify they aren't affected by an explicit diff
! diffupdate
! call assert_equal([2, 3], [line("'["), line("']")])
! bwipe!
! bwipe!
endfunc
" Test for 'patchexpr'
--- 1189,1218 ----
endfunc
func Test_diff_maintains_change_mark()
! func DiffMaintainsChangeMark()
! enew!
! call setline(1, ['a', 'b', 'c', 'd'])
! diffthis
! new
! call setline(1, ['a', 'b', 'c', 'e'])
! " Set '[ and '] marks
! 2,3yank
! call assert_equal([2, 3], [line("'["), line("']")])
! " Verify they aren't affected by the implicit diff
! diffthis
! call assert_equal([2, 3], [line("'["), line("']")])
! " Verify they aren't affected by an explicit diff
! diffupdate
! call assert_equal([2, 3], [line("'["), line("']")])
! bwipe!
! bwipe!
! endfunc
!
! set diffopt-=internal
! call DiffMaintainsChangeMark()
! set diffopt+=internal
! call DiffMaintainsChangeMark()
! set diffopt&
endfunc
" Test for 'patchexpr'
*** ../vim-8.2.3935/src/version.c 2021-12-29 16:05:28.026222402 +0000
--- src/version.c 2021-12-29 16:44:09.473864201 +0000
***************
*** 751,752 ****
--- 751,754 ----
{ /* Add new patch number below this line */
+ /**/
+ 3936,
/**/
--
hundred-and-one symptoms of being an internet addict:
141. You'd rather go to http://www.weather.com/ than look out your window.
/// 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/20211229164519.811C91C0642%40moolenaar.net.