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

            sel.range.deleteContents()
            bp =
                cont   : sel.range.startContainer
                offset : sel.range.offset
            @_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
            sel = this.document.getSelection()
            sel.removeAllRanges()
            sel.addRange(pop.initialSelRg) # otherwise addhistory will not work
            @_addHistory()

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