mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.1211: removed more than dead code
Problem: Removed more than dead code. Solution: Put back the decrement.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user