     return unless @markers?.length > 0
 
     if marker = @markers[markerIndex]
-      editor = @findModel.getEditor()
+      editor = @model.getEditor()
       editor.setSelectedBufferRange(marker.getBufferRange(), flash: true)
       editor.scrollToCursorPosition(center: true)
 
   setSelectionAsFindPattern: =>
-    editor = @findModel.getEditor()
+    editor = @model.getEditor()
     if editor?
       findPattern = editor.getSelectedText() or editor.getWordUnderCursor()
-      findPattern = Util.escapeRegex(findPattern) if @findModel.getFindOptions().useRegex
+      findPattern = Util.escapeRegex(findPattern) if @model.getFindOptions().useRegex
       @updateModel {findPattern} if findPattern
 
   findNextSelected: =>

        </symbol>
      </svg>'

  initialize: (@findModel, {findHistory, replaceHistory}) ->
    @subscriptions = new CompositeDisposable
    @findHistory = new HistoryCycler(@findEditor, findHistory)
    @replaceHistory = new HistoryCycler(@replaceEditor, replaceHistory)

      'find-and-replace:toggle-selection-option': @toggleSelectionOption
      'find-and-replace:toggle-whole-word-option': @toggleWholeWordOption

    @subscriptions.add @model.onDidUpdate @markersUpdated
    @subscriptions.add @model.onDidError @findError
    @subscriptions.add @model.onDidChangeCurrentResult @updateResultCounter
    @subscriptions.add @model.getFindOptions().onDidChange @updateOptionViews

    @regexOptionButton.on 'click', @toggleRegexOption
    @caseOptionButton.on 'click', @toggleCaseOption
