mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
💚 Fix LinesYardstick specs
This commit is contained in:
@@ -25,6 +25,7 @@ class LinesYardstick
|
||||
row = @lineTopIndex.rowForTopPixelPosition(targetTop, 'floor')
|
||||
targetLeft = 0 if targetTop < 0
|
||||
targetLeft = Infinity if row > @model.getLastScreenRow()
|
||||
row = Math.min(row, @model.getLastScreenRow())
|
||||
|
||||
@prepareScreenRowsForMeasurement([row]) unless measureVisibleLinesOnly
|
||||
|
||||
|
||||
Reference in New Issue
Block a user