     if Util.matches(el, ".cm-number")
       mouseDownEvent.preventDefault()
       @_startNumberScrub(mouseDownEvent)
+
+  _onMirrorDoubleClick: (mirror, dblClickEvent) ->
+    el = dblClickEvent.target
+    if Util.matches(el, ".cm-number")
+      dblClickEvent.preventDefault()
+      @_endNumberScrub(dblClickEvent) 
 
   _onMouseUp: (mouseUpEvent) ->
     {attribute} = @props


    @mirror.on("change", @_onChange)
    @mirror.on("mousedown", @_onMirrorMouseDown)
    @componentDidUpdate()

  componentDidUpdate: ->

    @mirror.setSelection(start, end)
    @_startScrubbingSelection(mouseDownEvent)

  _endNumberScrub: (dblClickEvent) ->
    position = @mirror.coordsChar({left: dblClickEvent.clientX, top: dblClickEvent.clientY})
    @mirror.setCursor(position)

  _getTokenPositionFromCursor: (mouseDownEvent) ->
    position = @mirror.coordsChar({left: mouseDownEvent.clientX, top: mouseDownEvent.clientY})
    # Make sure it's really on the right character.
