This commit is contained in:
Garen Torikian
2013-03-31 01:11:19 -07:00
parent 4cd181022d
commit 6f982c7c4c
3 changed files with 6 additions and 3 deletions

View File

@@ -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) ->

View File

@@ -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