     i = 0
     while i < intactRanges.length
       range = intactRanges[i]
-      if range.from < renderFrom
-        range.domStart += renderFrom - range.from
-        range.from = renderFrom
-      if range.to > renderTo
-        range.to = renderTo
-      if range.from >= range.to
+      if range.start < renderFrom
+        range.domStart += renderFrom - range.start
+        range.start = renderFrom
+      if range.end > renderTo
+        range.end = renderTo
+      if range.start >= range.end
         intactRanges.splice(i--, 1)
       i++
     intactRanges.sort (a, b) -> a.domStart - b.domStart

    currentLine = renderedLines.firstChild
    screenRow = renderFrom
    for row in [renderFrom..renderTo]
      if row == nextIntact?.to + 1
        nextIntact = intactRanges.shift()
      if !nextIntact or row < nextIntact.from
        lineElement = @buildLineElementForScreenRow(row)
        renderedLines.insertBefore(lineElement, currentLine)
      else

  computeIntactRanges: ->
    return [] if !@firstRenderedScreenRow? and !@lastRenderedScreenRow?

    intactRanges = [{start: @firstRenderedScreenRow, end: @lastRenderedScreenRow, domStart: 0}]
    for change in @pendingChanges
      newIntactRanges = []
      for range in intactRanges
        if change.end < range.start and change.screenDelta != 0
          newIntactRanges.push(
            start: range.start + change.screenDelta
            end: range.end + change.screenDelta
            domStart: range.domStart
          )
        else if change.end < range.start or change.start > range.end
          newIntactRanges.push(range)
        else
          if change.start > range.start
            newIntactRanges.push(
              start: range.start
              end: change.start - 1
              domStart: range.domStart)
          if change.end < range.end
            newIntactRanges.push(
              start: change.end + change.screenDelta + 1
              end: range.end + change.screenDelta
              domStart: range.domStart + change.end + 1 - range.start
            )
      intactRanges = newIntactRanges
    @pendingChanges = []
