parent
7238b968f3
commit
35b046373a
1 changed files with 3 additions and 3 deletions
|
|
@ -412,6 +412,8 @@ proc processFile(pattern; filename: string; counter: var int, errors: var int) =
|
||||||
else:
|
else:
|
||||||
printContextBetween(si, prevMi, curMi)
|
printContextBetween(si, prevMi, curMi)
|
||||||
printMatch(si.fileName, curMi)
|
printMatch(si.fileName, curMi)
|
||||||
|
if t.last == buffer.len - 1:
|
||||||
|
stdout.write("\n")
|
||||||
stdout.flushFile()
|
stdout.flushFile()
|
||||||
else:
|
else:
|
||||||
let r = replace(curMi.match, pattern, replacement % matches)
|
let r = replace(curMi.match, pattern, replacement % matches)
|
||||||
|
|
@ -659,8 +661,6 @@ else:
|
||||||
walker(rep, f, counter, errors)
|
walker(rep, f, counter, errors)
|
||||||
if errors != 0:
|
if errors != 0:
|
||||||
printError $errors & " errors"
|
printError $errors & " errors"
|
||||||
if counter == 1:
|
|
||||||
stdout.write("\n")
|
|
||||||
stdout.write($counter & " matches\n")
|
stdout.write($counter & " matches\n")
|
||||||
if errors != 0:
|
if errors != 0:
|
||||||
quit(1)
|
quit(1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue