         continue
       # console.log sel.print()+" at left of "+thisSel.print()
       [left, right] = sel.unbind()
-      sel.rightPos = 0
+      sel.rightPos = posToBound
       sel.bind left, wordToBound
 
       if sel.isEmpty()

    newLeft = left.word.substring 0, selection.leftPos
    newRight = right.word.substring selection.rightPos

    if left == right
      @setWord leftIndex, (newLeft + newRight)

      # delete the words in between
      @deleteWords leftIndex+1, rightIndex
    else
      @setWord leftIndex, newLeft
      @setWord rightIndex, newRight

      # delete the words in between
      @deleteWords leftIndex+1, rightIndex
      # merge
      @merge leftIndex

  # Insert text at position
  #

        continue
      # console.log thisSel.print()+" at left of "+sel.print()
      [left, right] = sel.unbind()
      sel.leftPos = posToBound
      sel.bind wordToBound, right

      if sel.isEmpty()
