         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)


            bp2 = bps[1]
            rg.setStart(bp1.cont, bp1.offset)
            rg.setEnd(  bp2.cont, bp2.offset)
            sel = this.document.getSelection()
            sel.removeAllRanges()
            sel.addRange(rg)
            @setFocus()
