       expect(editor.getText()).toBe 'abc\nXyZ'
 
     describe "when followed by gu", ->
-      it "makes the whole line lowercase", ->
-        editor.setCursorBufferPosition([2, 2])
+      it "makes the whole line lowercase, and the cursor ends up on the first character of that line", ->
+        editor.setCursorBufferPosition([1, 1])
 
         keydown('g')
         keydown('u')

        keydown('U', shift: true)

        expect(editor.getText()).toBe "aBc\nXYZ"

  describe 'the gu keybinding', ->
    beforeEach ->

        keydown('u')

        expect(editor.getText()).toBe "aBc\nxyz"
        expect(editor.getCursorScreenPosition()).toEqual [1, 0]

  describe "the i keybinding", ->
    beforeEach ->
