Make outermostFoldsForBufferRowRange exclusive of end row

This commit is contained in:
Nathan Sobo
2014-03-06 12:52:27 -07:00
parent 66f6e38788
commit ce4ce55b29
2 changed files with 4 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ class DisplayBuffer extends Model
@foldsContainingBufferRow(bufferRow)[0]
outermostFoldsInBufferRowRange: (startRow, endRow) ->
@findFoldMarkers(containedInRange: [[startRow, 0], [endRow + 1, 0]])
@findFoldMarkers(containedInRange: [[startRow, 0], [endRow, 0]])
.map (marker) => @foldForMarker(marker)
.filter (fold) -> not fold.isInsideLargerFold()