     {startScreenRow, endScreenRow, startBufferRow, endBufferRow}
 
   buildSpatialTokenLines: (startBufferRow, endBufferRow) ->
-    folds = @computeFoldsInBufferRowRange(startBufferRow, endBufferRow)
+    {startBufferRow, endBufferRow, folds} = @computeFoldsInBufferRowRange(startBufferRow, endBufferRow)
 
     screenLines = []
     bufferRow = startBufferRow


        # Process subsequent folds that intersect the current fold.
        loop
          # Skip subsequent fold markers that nest within the current fold, and
          # merge folds that start within the the current fold but end after it.
          if i < (foldMarkers.length - 1) and comparePoints(foldMarkers[i + 1].getStartPosition(), foldEnd) <= 0


        i++

    {folds, startBufferRow, endBufferRow}

  emptyLineIndentationForBufferRow: (bufferRow) ->
    return 0 if @buffer.lineForRow(bufferRow).length > 0
