mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Fix spec
This commit is contained in:
@@ -176,7 +176,8 @@ class Project
|
||||
|
||||
for [column, length] in matchPositions
|
||||
range = new Range([row, column], [row, column + length])
|
||||
iterator({path, range, lineText})
|
||||
match = lineText.substr(column + 1, length)
|
||||
iterator({path, range, match, lineText})
|
||||
|
||||
deferred = $.Deferred()
|
||||
exit = (code) ->
|
||||
|
||||
@@ -13,7 +13,7 @@ class SelectAllMatchesInProject extends Command
|
||||
compile: (project, buffer, range) ->
|
||||
deferred = $.Deferred()
|
||||
operations = []
|
||||
promise = project.scan @regex, ({path, range, lineText}) ->
|
||||
promise = project.scan @regex, ({path, range, match, lineText}) ->
|
||||
operations.push(new Operation(
|
||||
project: project
|
||||
path: path
|
||||
|
||||
Reference in New Issue
Block a user