 
         linesNode.dispatchEvent(buildMouseEvent('mousemove', clientCoordinatesForScreenPosition([11, 11]), which: 1))
         nextAnimationFrame()
-        expect(editor.getSelectedScreenRange()).toEqual [[5, 0], [12, 0]]
+        expect(editor.getSelectedScreenRange()).toEqual [[5, 0], [12, 2]]
 
         maximalScrollTop = editor.getScrollTop()
 

        gutterNode.dispatchEvent(buildMouseEvent('mousemove', clientCoordinatesForScreenRowInGutter(5)))
        nextAnimationFrame()
        expect(editor.getScrollTop()).toBe maxScrollTop

      it "stops selecting if a textInput event occurs during the drag", ->
        gutterNode.dispatchEvent(buildMouseEvent('mousedown', clientCoordinatesForScreenRowInGutter(2)))

        nextAnimationFrame()
        expect(editor.getLastSelection().isReversed()).toBe false

      it "autoscrolls when the cursor exceeds the top or bottom of the editor", ->
        wrapperNode.style.height = 6 * lineHeightInPixels + 'px'
        component.measureDimensions()
        nextAnimationFrame()

        expect(editor.getScrollTop()).toBe 0

        gutterNode.dispatchEvent(buildMouseEvent('mousedown', clientCoordinatesForScreenRowInGutter(2)))
        gutterNode.dispatchEvent(buildMouseEvent('mousemove', clientCoordinatesForScreenRowInGutter(8)))
        nextAnimationFrame()

        expect(editor.getScrollTop()).toBeGreaterThan 0
