Prevents deleting the last line when resizing.
Merge pull request #29 from Swordfish90/vanilla-fix-last-line

Prevents deleting the last line when resizing.