mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
DisplayBuffer::linesForRows -> ::tokenizedLinesForScreenRows
Clarity!
This commit is contained in:
@@ -389,7 +389,7 @@ class DisplayBuffer extends Model
|
||||
# endRow - A {Number} indicating the ending screen row.
|
||||
#
|
||||
# Returns an {Array} of {TokenizedLine}s.
|
||||
linesForRows: (startRow, endRow) ->
|
||||
tokenizedLinesForScreenRows: (startRow, endRow) ->
|
||||
@screenLines[startRow..endRow]
|
||||
|
||||
# Gets all the screen lines.
|
||||
|
||||
@@ -421,8 +421,8 @@ class Editor extends Model
|
||||
# {Delegates to: DisplayBuffer.lineForRow}
|
||||
lineForScreenRow: (row) -> @displayBuffer.lineForRow(row)
|
||||
|
||||
# {Delegates to: DisplayBuffer.linesForRows}
|
||||
linesForScreenRows: (start, end) -> @displayBuffer.linesForRows(start, end)
|
||||
# {Delegates to: DisplayBuffer.tokenizedLinesForScreenRows}
|
||||
linesForScreenRows: (start, end) -> @displayBuffer.tokenizedLinesForScreenRows(start, end)
|
||||
|
||||
# Public: Returns a {Number} representing the line length for the given
|
||||
# buffer row, exclusive of its line-ending character(s).
|
||||
|
||||
Reference in New Issue
Block a user