Rename screenLineForRow -> lineForScreenRow

This commit is contained in:
Nathan Sobo
2012-06-13 14:40:23 -06:00
parent f8e776ea15
commit c09c672843
7 changed files with 54 additions and 55 deletions

View File

@@ -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) ->

View File

@@ -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()

View File

@@ -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) ->

View File

@@ -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)