Fix scan specs

This commit is contained in:
Garen Torikian
2013-03-28 12:09:14 -07:00
parent b298f63e4c
commit 9e3935f349
2 changed files with 4 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ class Project
for [column, length] in matchPositions
range = new Range([row, column], [row, column + length])
match = lineText.substr(column, length)
match = lineText.substr(column + 1, length)
iterator({path, range, match})
deferred = $.Deferred()
@@ -195,6 +195,7 @@ class Project
command = require.resolve 'nak'
args = ['--ackmate', regex.source, @getPath()]
args.unshift("--addVCSIgnores") if config.get('nak.addVCSIgnores')
#console.log(args)
new BufferedProcess({command, args, stdout, exit})
deferred