Printing selected text only worked correctly if the lines from which text was
selected fit into single printed lines. Text selected from lines using multiple
printed lines was printed incompletely and/or additional text which wasn't
selected was printed.
This patch fixes printing text from long lines.
BUG: 415570