all repos — fae @ 39815bfa614ff7d26c3c61bd37501f850b11a44f

A minuscule find and edit utility.

Closing files after reading (caused errors on Windows).
Fabio Cevasco h3rald@h3rald.com
Mon, 14 Mar 2016 17:03:35 +0100
commit

39815bfa614ff7d26c3c61bd37501f850b11a44f

parent

42766a9db04fb0c36ce72c633e507cff2386a073

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

jump to
M far.nimfar.nim

@@ -209,6 +209,7 @@ else:

displayFile(f, silent = options.silent) displayMatch(contents, match[0], match[1], fgYellow, lineN, silent = options.silent) match = matchBounds(contents, options.regex, matchend+offset+1, flags = options.flags) + file.close() if (not options.test) and (options.substitute != nil) and hasSubstitutions: f.writefile(fileLines.join("\n")) return [matchesN, subsN]