mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Line count methods use traverseByDelta
This commit is contained in:
@@ -38,10 +38,10 @@ class LineMap
|
||||
@linesByDelta('bufferDelta', startRow, endRow)
|
||||
|
||||
bufferLineCount: ->
|
||||
@bufferPositionForScreenPosition([Infinity, 0]).row
|
||||
@traverseByDelta('bufferDelta', new Point(Infinity, 0)).bufferDelta.row
|
||||
|
||||
screenLineCount: ->
|
||||
@screenPositionForBufferPosition([Infinity, 0]).row
|
||||
@traverseByDelta('screenDelta', new Point(Infinity, 0)).screenDelta.row
|
||||
|
||||
lastScreenRow: ->
|
||||
@screenLineCount() - 1
|
||||
|
||||
Reference in New Issue
Block a user