         buffer = @editor.getBuffer()
         previousRow = row - 1
         while previousRow >= 0
-            sameIndent = @editor.indentationForBufferRow(previousRow) <= indentLevel
+            previousIndentLevel = @editor.indentationForBufferRow previousRow
+            sameIndent = previousIndentLevel <= indentLevel
             blank = @blank(previousRow)
             isEnd = @getRow(previousRow).trim() == "end"
 

        @statusBarElement = document.createElement('div')
        @statusBarElement.classList.add('hydrogen')
        @statusBarElement.classList.add('status-container')
        @statusBarElement.onclick = =>
            editorView = atom.views.getView(atom.workspace.getActiveTextEditor())
            atom.commands.dispatch(editorView, 'hydrogen:show-kernel-commands')
        @statusBarTile = statusBar.addLeftTile(item: @statusBarElement,
                                               priority: 100)

    getRow: (row) ->
        buffer = @editor.getBuffer()
        return buffer.getTextInRange
            start:
                row: row
                column: 0
            end:
                row: row
                column: 9999999

    getRows: (startRow, endRow) ->
        buffer = @editor.getBuffer()
        return buffer.getTextInRange
            start:
                row: startRow
                column: 0
            end:
                row: endRow
                column: 9999999

    getFoldRange: (editor, row) ->
        range = editor.languageMode.rowRangeForCodeFoldAtBufferRow(row)
