       optionButton.removeClass 'selected'
 
   toggleRegexOption: =>
-    @model.search(@findEditor.getText(), useRegex: not @model.getFindOptions().useRegex)
+    @search(useRegex: not @model.getFindOptions().useRegex)
     @selectFirstMarkerAfterCursor()
 
   toggleCaseOption: =>
-    @model.search(@findEditor.getText(), caseSensitive: not @model.getFindOptions().caseSensitive)
+    @search(caseSensitive: not @model.getFindOptions().caseSensitive)
     @selectFirstMarkerAfterCursor()
 
   toggleSelectionOption: =>
-    @model.search(@findEditor.getText(), inCurrentSelection: not @model.getFindOptions().inCurrentSelection)
+    @search(inCurrentSelection: not @model.getFindOptions().inCurrentSelection)
     @selectFirstMarkerAfterCursor()
 
   toggleWholeWordOption: =>
-    @model.search(@findEditor.getText(), wholeWord: not @model.getFindOptions().wholeWord)
+    @search(@findEditor.getText(), wholeWord: not @model.getFindOptions().wholeWord)
     @selectFirstMarkerAfterCursor()
 
   updateReplaceEnablement: ->

  liveSearch: ->
    findPattern = @findEditor.getText()
    if findPattern.length is 0 or findPattern.length >= atom.config.get('find-and-replace.liveSearchMinimumCharacters')
      @model.search(findPattern)

  findAll: (options={focusEditorAfter: true}) =>
    @findAndSelectResult(@selectAllMarkers, options)

    @replace('findPrevious', 'firstMarkerIndexBeforeCursor')

  replace: (nextOrPreviousFn, nextIndexFn) ->
    @search()
    @findHistory.store()
    @replaceHistory.store()

