File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed
Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -615,11 +615,13 @@ diff_redraw(dofold)
615615#endif
616616 /* A change may have made filler lines invalid, need to take care
617617 * of that for other windows. */
618- if (wp != curwin && wp -> w_topfill > 0 )
618+ n = diff_check (wp , wp -> w_topline );
619+ if ((wp != curwin && wp -> w_topfill > 0 ) || n > 0 )
619620 {
620- n = diff_check (wp , wp -> w_topline );
621621 if (wp -> w_topfill > n )
622622 wp -> w_topfill = (n < 0 ? 0 : n );
623+ else if (n > 0 && n > wp -> w_topfill )
624+ wp -> w_topfill = n ;
623625 }
624626 }
625627}
Original file line number Diff line number Diff line change @@ -36,7 +36,22 @@ j:let three = three . "-" . winline()
3636:call append("$", two)
3737:call append("$", three)
3838:$-2,$w! test.out
39- :unlet one two three
39+ :" Test that diffing shows correct filler lines
40+ :diffoff!
41+ :windo :bw!
42+ :enew
43+ :put =range(4,10)
44+ :1d _
45+ :vnew
46+ :put =range(1,10)
47+ :1d _
48+ :windo :diffthis
49+ :wincmd h
50+ :let w0=line('w0')
51+ :enew
52+ :put =w0
53+ :.w >> test.out
54+ :unlet! one two three w0
4055:qa!
4156ENDTEST
4257
Original file line number Diff line number Diff line change 112-4-5-6-8-9
221-2-4-5-8
332-3-4-5-6-7-8
4+ 1
Original file line number Diff line number Diff line change @@ -725,6 +725,8 @@ static char *(features[]) =
725725
726726static int included_patches [] =
727727{ /* Add new patch number below this line */
728+ /**/
729+ 708 ,
728730/**/
729731 707 ,
730732/**/
You can’t perform that action at this time.
0 commit comments