mirror of
https://github.com/atom/atom.git
synced 2026-02-07 13:14:55 -05:00
Use the new lineText property
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user