💄 Rename lastLine -> getLastLine

This commit is contained in:
Nathan Sobo
2012-07-04 12:59:54 -06:00
parent f253820250
commit 2ddd5820f7
2 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ class Buffer
@change(@getRange(), text)
getRange: ->
new Range([0, 0], [@getLastRow(), @lastLine().length])
new Range([0, 0], [@getLastRow(), @getLastLine().length])
getTextInRange: (range) ->
range = Range.fromObject(range)
@@ -90,7 +90,7 @@ class Buffer
getLastRow: ->
@getLines().length - 1
lastLine: ->
getLastLine: ->
@lineForRow(@getLastRow())
getEofPosition: ->

View File

@@ -82,7 +82,7 @@ class MoveToNextParagraph extends Motion
if not row
row = @editor.getLastBufferRow()
column = @editor.getBuffer().lastLine().length - 1
column = @editor.getBuffer().getLastLine().length - 1
new Point(row, column)