use version specific editor.scan signature
MODIFY
lib/project/results-model.coffee
lib/project/results-model.coffee
@@ -247,10 +247,14 @@ class ResultsModel
return unless editor.getPath()
matches = []
+ if parseFloat(atom.getVersion()) >= 1.17
leadingContextLineCount = atom.config.get('find-and-replace.searchContextLineCountBefore')
trailingContextLineCount = atom.config.get('find-and-replace.searchContextLineCountAfter')
editor.scan @regex, {leadingContextLineCount, trailingContextLineCount}, (match) ->
matches.push(match)
+ else
+ editor.scan @regex, (match) ->
+ matches.push(match)
result = Result.create({filePath: editor.getPath(), matches})
@setResult(editor.getPath(), result)

use version specific editor.scan signature