Detect incomplete last line.
More logic is needed for updating the display from this.