Prevents deleting the last line when resizing.

This tiny patch fixes the issue with resizing. Increasing the height of the window makes the last line of the screen invisible until a key is pressed.