check whether line was edited in qt history scroll

avoids ignoring a typed line during scrollback if the cursor is at the end of the line.