comparison src/testdir/test_diffmode.vim @ 29519:3afe997f4415 v9.0.0101

patch 9.0.0101: invalid memory access in diff mode with "dp" and undo Commit: https://github.com/vim/vim/commit/4e677b9c40ccbc5f090971b31dc2fe07bf05541d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 28 18:44:27 2022 +0100 patch 9.0.0101: invalid memory access in diff mode with "dp" and undo Problem: Invalid memory access in diff mode with "dp" and undo. Solution: Make sure the line number does not go below one.
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Jul 2022 19:45:06 +0200
parents 922b87383277
children 2e2f57f2875d
comparison
equal deleted inserted replaced
29518:b8d5460657e3 29519:3afe997f4415
1629 1629
1630 set nodiff 1630 set nodiff
1631 %bwipe! 1631 %bwipe!
1632 endfunc 1632 endfunc
1633 1633
1634 " This was causing the line number in the diff block to go below one.
1635 " FIXME: somehow this causes a valgrind error when run directly but not when
1636 " run as a test.
1637 func Test_diff_put_and_undo()
1638 set diff
1639 next 0
1640 split 00
1641 sil! norm o0gguudpo0ggJuudp
1642
1643 bwipe!
1644 bwipe!
1645 set nodiff
1646 endfunc
1647
1634 1648
1635 " vim: shiftwidth=2 sts=2 expandtab 1649 " vim: shiftwidth=2 sts=2 expandtab