From: Tim Vaughan Date: Sat, 13 Aug 2016 10:29:49 +0000 (+1200) Subject: Fixed bug in CODE. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=2c39f05df26d4991f34d7087bb667964e89038a5;p=forth.jl.git Fixed bug in CODE. --- diff --git a/src/forth.jl b/src/forth.jl index 51714f4..259d0a2 100644 --- a/src/forth.jl +++ b/src/forth.jl @@ -1038,8 +1038,10 @@ CODE_CFA = defPrimWord("CODE", () -> begin exprString = "() -> begin\n" while true if mem[TOIN] >= mem[NUMTIB] - println() exprString = string(exprString, "\n") + if currentSource() == STDIN + println() + end pushPS(TIB) pushPS(160)