         pendingIsoMapping = null
 
     bufferRow = startBufferRow
-    while bufferRow < endBufferRow + bufferDelta
+    while bufferRow < endBufferRow
       tokenizedLine = @tokenizedBuffer.lineForScreenRow(bufferRow)
 
       if fold = @largestFoldStartingAtBufferRow(bufferRow)

  setSoftWrapColumn: (@softWrapColumn) ->
    start = 0
    end = @getLastRow()
    @buildScreenLines()
    screenDelta = @getLastRow() - end
    bufferDelta = 0
    @triggerChanged({ start, end, screenDelta, bufferDelta })

        @longestScreenRow = maxLengthCandidatesStartRow + screenRow
        @maxLineLength = length

  handleMarkersUpdated: =>
    event = @pendingChangeEvent
    @pendingChangeEvent = null
