]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0822: topline might be changed in diff mode unexpectedly v9.1.0822
authorChristian Brabandt <cb@256bit.org>
Tue, 29 Oct 2024 19:29:04 +0000 (20:29 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 29 Oct 2024 19:29:04 +0000 (20:29 +0100)
commit05a40e07c2f0e41b708c4c75a6aa7d0e7f6201a3
tree087597131d98ccbcc3afbee4d2fddc8b55514527
parent203c7225f52fbb4a58e544dafbc4ac96b71085b3
patch 9.1.0822: topline might be changed in diff mode unexpectedly

Problem:  topline might be changed in diff mode unexpectedly
          (Jaehwang Jung)
Solution: do not re-calculate topline, when using line() func
          in diff mode.

fixes: #15812
closes: #15950

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/evalfunc.c
src/testdir/dumps/Test_diff_topline_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_diff_topline_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_diff_topline_3.dump [new file with mode: 0644]
src/testdir/dumps/Test_diff_topline_4.dump [new file with mode: 0644]
src/testdir/test_diffmode.vim
src/version.c