all repos — fae @ f48349e113966a77e49887aea6ff5b26bd194122

A minuscule find and edit utility.

Removing unused proc.
h3rald h3rald@h3rald.com
Sat, 12 Mar 2016 14:32:58 +0100
commit

f48349e113966a77e49887aea6ff5b26bd194122

parent

2482d08e4ef3a254b758d9c0cc3a2617bef09127

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M far.nimfar.nim

@@ -71,9 +71,6 @@ quit("Regex Error: Too many brackets", match)

else: result = [-1, match] -proc `$`(sb: StringBounds): string = - return "($1,$2)" % [$sb[0], $sb[1]] - proc matchBounds(str, regex: string, start = 0, flags = 0): StringBounds = var c = cast[ptr array[0..9,Capture]](alloc0(sizeof(array[0..9, Capture]))) var s = str.substr(start).cstring

@@ -294,4 +291,4 @@

if options.substitute != nil: echo "=== ", count, " files processed - ", matchesN, " matches, ", subsN, " substitutions (", (cpuTime()-duration), " seconds)." else: - echo "=== ", count, " files processed - ", matchesN, " matches (", (cpuTime()-duration), " seconds)."+ echo "=== ", count, " files processed - ", matchesN, " matches (", (cpuTime()-duration), " seconds)."