Use the new lineText property

This commit is contained in:
Antonio Scandurra
2016-03-22 14:36:28 +01:00
parent 27799d30f6
commit b1e07c0cfe

View File

@@ -776,7 +776,7 @@ class TextEditor extends Model
#
# * `screenRow` A {Number} representing a zero-indexed screen row.
lineTextForScreenRow: (screenRow) ->
@screenLineForScreenRow(screenRow)?.tokens.map((t) -> t.text).join('')
@screenLineForScreenRow(screenRow)?.lineText
screenLineForScreenRow: (screenRow) ->
@displayLayer.getScreenLines(screenRow, screenRow + 1)[0]