Skip to content

Commit 6f344a4

Browse files
authored
Fix REPL vars when switching namespaces (#202)
* Fix REPL vars when switching namespaces * Oops * Okay but for real
1 parent 9d13f39 commit 6f344a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/basilisp/repl.lpy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"Mark the REPL result and move each result to the next slot
1111
down."
1212
[result]
13-
(set! '*3 *2)
14-
(set! '*2 *1)
15-
(set! '*1 result))
13+
(set! `*3 basilisp.repl/*2)
14+
(set! `*2 basilisp.repl/*1)
15+
(set! `*1 result))
1616

1717
(defn mark-exception
1818
"Set the variable *e to the last exception at the REPL."
1919
[e]
20-
(set! '*e e))
20+
(set! `*e e))
2121

2222
(defn pydoc
2323
"Print the Python docstring for a function."

0 commit comments

Comments
 (0)