         currentLine = currentLine?.nextSibling
         row++
 
+  classesForRow: (row) -> @lineClasses[row+1]
+
   updatePaddingOfRenderedLines: ->
     paddingTop = @firstRenderedScreenRow * @lineHeight
     @lines.css('padding-top', paddingTop)


        if @editorView instanceof EditorView
          for lineElement in @editorView.buildLineElementsForScreenRows(row, dirtyRangeEnd)
            classes = @lineClasses[row+1]
            lineElement?.classList.add(classes...) if classes?
            @lines[0].insertBefore(lineElement, currentLine)
            row++


          linesComponent.props.lineDecorations ||= {}

          for line in lines
            html = linesComponent.buildLineHTML(line, row)
            @dummyNode.innerHTML = html
            lineElement = @dummyNode.childNodes[0]
            unless lineElement?
              console.warn "Unexpected undefined line element at screen row #{screenRow}"
              continue
            classes = @classesForRow(row)
            lineElement.className = 'line'
            lineElement.classList.add(classes...) if classes?
            lineElement.style.cssText=""
