REPL character substitution now working again.
authorTim Vaughan <tgvaughan@gmail.com>
Tue, 4 Sep 2018 08:25:02 +0000 (10:25 +0200)
committerTim Vaughan <tgvaughan@gmail.com>
Tue, 4 Sep 2018 08:39:56 +0000 (10:39 +0200)
src/forth.jl

index 97e9c4b..ead0bbc 100644 (file)
@@ -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