💚 Start fixing TextEditorComponent specs

This commit is contained in:
Antonio Scandurra
2016-03-17 11:19:54 +01:00
parent f57fb3176a
commit 5efb969a63
2 changed files with 10 additions and 9 deletions

View File

@@ -773,7 +773,9 @@ class TextEditor extends Model
# given screen row.
#
# * `screenRow` A {Number} representing a zero-indexed screen row.
lineTextForScreenRow: (screenRow) -> @displayBuffer.tokenizedLineForScreenRow(screenRow)?.text
lineTextForScreenRow: (screenRow) ->
line = @displayLayer.getScreenLines(screenRow, screenRow + 1)[0]
line?.tokens.map((t) -> t.text).join('')
# Gets the screen line for the given screen row.
#