mirror of
https://github.com/atom/atom.git
synced 2026-02-07 21:25:05 -05:00
💚 Start fixing TextEditorComponent specs
This commit is contained in:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user