Skip to content

Commit

Permalink
Fix single match output (#12920)
Browse files Browse the repository at this point in the history
  • Loading branch information
genotrance authored and Araq committed Dec 17, 2019
1 parent 18e2ea7 commit f9f55a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/nimgrep.nim
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,8 @@ else:
walker(rep, f, counter, errors)
if errors != 0:
printError $errors & " errors"
if counter == 1:
stdout.write("\n")
stdout.write($counter & " matches\n")
if errors != 0:
quit(1)

0 comments on commit f9f55a2

Please sign in to comment.