all repos — fae @ 9682afb0008d0ef053c89ca17b19e92216631f4f

A minuscule find and edit utility.

Fixes.
h3rald h3rald@h3rald.com
Fri, 19 Mar 2021 17:32:24 +0100
commit

9682afb0008d0ef053c89ca17b19e92216631f4f

parent

05c403fbfcbceae5b33bdb743045443f896bc186

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

jump to
M src/fae.nimsrc/fae.nim

@@ -22,11 +22,11 @@ test: bool

silent: bool when defined(windows): - {.passL: "-static -Lfaepkg/vendor/pcre/windows -lpcre".} + {.passL: "-static -Lsrc/faepkg/vendor/pcre/windows -lpcre".} elif defined(linux): - {.passL: "-static -Lfaepkg/vendor/pcre/linux -lpcre".} + {.passL: "-static -Lsrc/faepkg/vendor/pcre/linux -lpcre".} elif defined(macosx): - {.passL: "-Bstatic -Lfaepkg/vendor/pcre/macosx -lpcre -Bdynamic".} + {.passL: "-Bstatic -Lsrc/faepkg/vendor/pcre/macosx -lpcre -Bdynamic".} addExitProc(resetAttributes)

@@ -151,7 +151,7 @@ if options.substitute != "":

displayFile(f) displayMatch(contents, matchstart, matchend, fgRed, lineN) var substitute = options.substitute - var replacement = contents.replace(options.regex, substitute, matchstart, options) + var replacement = contents.replace(options.regex, substitute, matchstart) offset = substitute.len-(matchend-matchstart+1) for i in 0..(f.len+1): stdout.write(" ")