Don't redraw lines that have scrolled out of screen

Deleting a line can now throw an IndexError if the line is no longer
visible.