We don't need to clear the source line at SCROLL_BOTTOM (it will be cleared after for statement).
And the source lines from SCROLL_TOP to SCROLL_BOTTOM - 1, come to be also target lines.
So I think we should pay attention to only targetLine.