Fix bug when scrolling in the scroll buffer

When scrolling down, if the new bottom line is shorter than the previous
one, then the tail of the previous bottom line is not cleared.