mirror of
https://github.com/atom/atom.git
synced 2026-02-06 12:44:59 -05:00
Rename screenLineForRow -> lineForScreenRow
This commit is contained in:
@@ -207,7 +207,7 @@ class EditSession
|
||||
@setCursorBufferPosition([fold.startRow, 0])
|
||||
|
||||
isFoldedAtScreenRow: (screenRow) ->
|
||||
@screenLineForRow(screenRow).fold?
|
||||
@lineForScreenRow(screenRow).fold?
|
||||
|
||||
toggleLineCommentsInRange: (range) ->
|
||||
@renderer.toggleLineCommentsInRange(range)
|
||||
@@ -218,7 +218,7 @@ class EditSession
|
||||
fn(selection) for selection in selections
|
||||
@buffer.endUndoBatch(@getSelectedBufferRanges())
|
||||
|
||||
screenLineForRow: (row) ->
|
||||
lineForScreenRow: (row) ->
|
||||
@renderer.lineForRow(row)
|
||||
|
||||
stateForScreenRow: (screenRow) ->
|
||||
|
||||
@@ -220,7 +220,6 @@ class Editor extends View
|
||||
@activeEditSession.setSoftWrapColumn(softWrapColumn) if softWrapColumn
|
||||
|
||||
getScreenLines: -> @renderer.getLines()
|
||||
screenLineForRow: (start) -> @renderer.lineForRow(start)
|
||||
screenLinesForRows: (start, end) -> @renderer.linesForRows(start, end)
|
||||
screenLineCount: -> @renderer.lineCount()
|
||||
maxScreenLineLength: -> @renderer.maxLineLength()
|
||||
|
||||
@@ -65,7 +65,7 @@ class Highlighter
|
||||
text = _.pluck(tokenObjects, 'value').join('')
|
||||
new ScreenLine(tokenObjects, text, [1, 0], [1, 0], { state })
|
||||
|
||||
screenLineForRow: (row) ->
|
||||
lineForScreenRow: (row) ->
|
||||
@screenLines[row]
|
||||
|
||||
screenLinesForRows: (startRow, endRow) ->
|
||||
|
||||
@@ -202,7 +202,7 @@ class Renderer
|
||||
|
||||
startBufferColumn = 0
|
||||
while currentBufferRow <= endBufferRow
|
||||
screenLine = @highlighter.screenLineForRow(currentBufferRow)
|
||||
screenLine = @highlighter.lineForScreenRow(currentBufferRow)
|
||||
screenLine.foldable = @foldSuggester.isBufferRowFoldable(currentBufferRow)
|
||||
|
||||
if fold = @largestFoldForBufferRow(currentBufferRow)
|
||||
|
||||
Reference in New Issue
Block a user