       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')

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

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

        expect(editor.getText()).toBe 'Abc\nXyZ'

    describe "when followed by g~", ->
      it "toggles the case of the whole line, and the cursor ends up on the first character of that line", ->
        editor.setCursorBufferPosition([1, 1])

        keydown('g')
        keydown('~')
