mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -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: ->
|
||||
|
||||
Reference in New Issue
Block a user