       it "loops back around", ->
         editor.setCursorBufferPosition([3, 0])
         keydown '/'
-        editor.commandModeInputView.input[0].value = 'def'
+        editor.commandModeInputView.editor.setText 'def'
         editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'
 
         expect(editor.getCursorBufferPosition()).toEqual [1, 0]

    describe "when reversed as ?", ->
      it "moves the cursor backwards to the specified search pattern", ->
        keydown '?'
        editor.commandModeInputView.input[0].value = 'def'
        editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'
        expect(editor.getCursorBufferPosition()).toEqual [3, 0]

      describe "repeating", ->
        beforeEach ->
          keydown '?'
          editor.commandModeInputView.input[0].value = 'def'
          editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'

        describe 'the n keybinding', ->

      describe "repeating", ->
        beforeEach ->
          keydown '/'
          editor.commandModeInputView.editor.setText 'def'
          editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'

        describe "the n keybinding", ->
