mirror of
https://github.com/janet-lang/janet
synced 2025-01-13 17:10:27 +00:00
Fix regression in repl.
This commit is contained in:
parent
67f1872f4a
commit
70e1f3ac81
@ -2505,6 +2505,7 @@
|
|||||||
the repl in."
|
the repl in."
|
||||||
[&opt chunks onsignal env]
|
[&opt chunks onsignal env]
|
||||||
(default env (make-env))
|
(default env (make-env))
|
||||||
|
(defn repl-wrap [x] (pp x) x)
|
||||||
(default chunks
|
(default chunks
|
||||||
(fn [buf p]
|
(fn [buf p]
|
||||||
(getline
|
(getline
|
||||||
@ -2547,7 +2548,7 @@
|
|||||||
|
|
||||||
(run-context {:env env
|
(run-context {:env env
|
||||||
:chunks chunks
|
:chunks chunks
|
||||||
:expander (fn [x] (with-syms [g] (apply let [g x] [pp g] [g])))
|
:expander (fn [x] [repl-wrap x])
|
||||||
:on-status (or onsignal (make-onsignal env 1))
|
:on-status (or onsignal (make-onsignal env 1))
|
||||||
:source "repl"}))
|
:source "repl"}))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user