mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
💄 Rename lastLine -> getLastLine
This commit is contained in:
@@ -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: ->
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user