         @view.classList.add 'inline'
         @view.style.top = -@editor.getLineHeightInPixels() + 'px'
       when 'block' then @view.classList.add 'under'
-    if error then @view.classList.add 'error'
     # @view.style.pointerEvents = 'auto'
     @view.addEventListener 'mousewheel', (e) ->
       e.stopPropagation()

    @disposables.add atom.commands.add @view,
      'inline-results:clear': (e) => @remove()
    fade and @fadeIn()
    if content? then @view.appendChild content

  lineRange: (start, end) ->
    [[start, 0], [end, @editor.lineTextForBufferRow(end).length]]

    @timeout 20, =>
      @view.classList.remove 'ink-hide'

  createView: (opts) ->
    {content, fade, loading} = opts
    @view = document.createElement 'div'
    @view.classList.add 'ink', 'result'
    switch @type
