Add Editor::lineTextForScreenRow()

Closes #3055