Closing files after reading (caused errors on Windows).
Fabio Cevasco h3rald@h3rald.com
Mon, 14 Mar 2016 17:03:35 +0100
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
far.nim
→
far.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]