     if options.inlineOptions?
       editor = options.inlineOptions.editor
       range = options.inlineOptions.range
+      # Remove the existing view if there is one
+      @ink.Result.removeLines(editor, range.row.end, range.row.end)
       # use the id for asynchronous eval/result
       spinid = @loadingIndicator.startAt(editor, range)
 

    view = recurseTree(tree)

    # Add new inline view
    r = new @ink.Result editor, [end, end],
          content: view, error: error, type: if error then 'block' else 'inline'


  # be of the shape like the following.
  # ["text for display", {button options}, [childtree1, childtree2, ...]]
  displayInline: (editor, range, tree, error=false)->

    # Defines a recursive function that can convert the tree of values to
    # display into an Atom Ink tree view. Sub-branches are expandable.
