diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/testdir/test_diffmode.vim | 22 | 
1 files changed, 22 insertions, 0 deletions
| diff --git a/src/nvim/testdir/test_diffmode.vim b/src/nvim/testdir/test_diffmode.vim index 42e18ed027..49bbe84869 100644 --- a/src/nvim/testdir/test_diffmode.vim +++ b/src/nvim/testdir/test_diffmode.vim @@ -800,3 +800,25 @@ func Test_diff_closeoff()    diffoff!    enew!  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 | 
