     if editor?
       findPattern = editor.getSelectedText() or editor.getWordUnderCursor()
       findPattern = Util.escapeRegex(findPattern) if @model.getFindOptions().useRegex
-      @model.search(findPattern) if findPattern
+      @search(findPattern) if findPattern
 
   findNextSelected: =>
     @setSelectionAsFindPattern()

  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)

      atom.beep()

  replaceAll: =>
    @search()
    if @markers?.length
      @replaceHistory.store()
      @findHistory.store()
