summaryrefslogtreecommitdiff
path: root/src/testdir/test_diffmode.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-14 21:22:30 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-14 21:22:30 +0200
commit8455c5ed31c9cb2919f5e62693bab6b09bf60df2 (patch)
tree59fba9fb637e0cd0af7dca52b3788da4edc08480 /src/testdir/test_diffmode.vim
parent1f22cc5cdb2da867d6bbf54dd371f279c38a2f56 (diff)
downloadvim-git-8455c5ed31c9cb2919f5e62693bab6b09bf60df2.tar.gz
patch 8.2.1211: removed more than dead codev8.2.1211
Problem: Removed more than dead code. Solution: Put back the decrement.
Diffstat (limited to 'src/testdir/test_diffmode.vim')
-rw-r--r--src/testdir/test_diffmode.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim
index a3f6d5867..c0c5d0d44 100644
--- a/src/testdir/test_diffmode.vim
+++ b/src/testdir/test_diffmode.vim
@@ -1130,4 +1130,24 @@ func Test_diff_multilineconceal()
redraw
endfunc
+func Test_diff_and_scroll()
+ " this was causing an ml_get error
+ set ls=2
+ for i in range(winheight(0) * 2)
+ call setline(i, i < winheight(0) - 10 ? i : i + 10)
+ endfor
+ vnew
+ for i in range(winheight(0)*2 + 10)
+ call setline(i, i < winheight(0) - 10 ? 0 : i)
+ endfor
+ diffthis
+ wincmd p
+ diffthis
+ execute 'normal ' . winheight(0) . "\<C-d>"
+
+ bwipe!
+ bwipe!
+ set ls&
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab