             sel.range.deleteContents()
             bp =
                 cont   : sel.range.startContainer
-                offset : sel.range.offset
+                offset : sel.range.startOffset
             @_fusionSimilarSegments(sel.startLine.line$[0], [bp])
             @_setCaret(bp.cont, bp.offset)
 

        # 3- in case of a link creation, addhistory has already be done, it must 
        # then be done if non a link creation.
        if !pop.isLinkCreation
            @currentSel.sel.removeAllRanges()
            @currentSel.sel.addRange(pop.initialSelRg) # otherwise addhistory will not work
            @_addHistory()

        # 4- case of a deletion of the urlInput value => 'remove the link'

        nextSegment = segment.nextSibling
        # case of a line with only one segment : nothing to do
        if nextSegment.nodeName == 'BR'
            return breakPoints

        while nextSegment.nodeName != 'BR'
            
