From: Tim Vaughan Date: Tue, 4 Sep 2018 08:25:02 +0000 (+0200) Subject: REPL character substitution now working again. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=forth.jl.git;a=commitdiff_plain;h=6a34e447b5d32310f63850a794816e30e350cc5c REPL character substitution now working again. --- diff --git a/src/forth.jl b/src/forth.jl index 97e9c4b..ead0bbc 100644 --- a/src/forth.jl +++ b/src/forth.jl @@ -750,9 +750,9 @@ function getLineFromSTDIN() function getFrag(s) chars = collect(s) - slashIdx = findlast(chars, '\\') + slashIdx = findlast(isequal('\\'), chars) - if slashIdx > 0 + if slashIdx != nothing return join(chars[slashIdx:length(chars)]) else return nothing