Only return decorations for markers intersecting the screen row range

This relies on a fix to the interval-skip-list provided with the upgrade
to text-buffer@2.4.0.
This commit is contained in:
Nathan Sobo
2014-06-16 16:18:54 -06:00
committed by Ben Ogle
parent 4f2f158d0d
commit 2c04bff0fa
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@
"serializable": "^1",
"space-pen": "3.2.0",
"temp": "0.7.0",
"text-buffer": "^2.3.0",
"text-buffer": "^2.4.0",
"theorist": "^1",
"underscore-plus": "^1.4.1",
"vm-compatibility-layer": "0.1.0"

View File

@@ -722,7 +722,7 @@ class DisplayBuffer extends Model
decorationsForScreenRowRange: (startScreenRow, endScreenRow) ->
decorationsByMarkerId = {}
for marker in @findMarkers()
for marker in @findMarkers(intersectsScreenRowRange: [startScreenRow, endScreenRow])
if decorations = @decorationsByMarkerId[marker.id]
decorationsByMarkerId[marker.id] = decorations
decorationsByMarkerId