Skip to content
Snippets Groups Projects
Commit 8455c5ed authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

patch 8.2.1211: removed more than dead code

Problem:    Removed more than dead code.
Solution:   Put back the decrement.
parent 1f22cc5c
No related branches found
Tags v8.2.1211
No related merge requests found
...@@ -2681,6 +2681,7 @@ halfpage(int flag, linenr_T Prenum) ...@@ -2681,6 +2681,7 @@ halfpage(int flag, linenr_T Prenum)
if (curwin->w_topfill > 0) if (curwin->w_topfill > 0)
{ {
i = 1; i = 1;
--n;
--curwin->w_topfill; --curwin->w_topfill;
} }
else else
......
...@@ -1130,4 +1130,24 @@ func Test_diff_multilineconceal() ...@@ -1130,4 +1130,24 @@ func Test_diff_multilineconceal()
redraw redraw
endfunc 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 " vim: shiftwidth=2 sts=2 expandtab
...@@ -754,6 +754,8 @@ static char *(features[]) = ...@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1211,
/**/ /**/
1210, 1210,
/**/ /**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment