     @pushUndo operation
 
   @prepareNode node, null
+  @correctCursor()
   return operation
 
 Editor::spliceIn = (node, location) ->

  operation = null
  operation = @tree.insert location, node, [@cursor]
  @pushUndo operation
  return operation

Editor::replace = (before, after, updates) ->
  operation = @tree.replace before, after, updates
  @pushUndo operation
  return operation

Editor::prepareNode = (node, context) ->
  if node instanceof model.Container

      @tree.perform(operation, 'backward', [@cursor]) unless operation is 'CAPTURE'

  @popUndo()
  @correctCursor()
  @redrawMain()
  return

