Skip to content

Commit

Permalink
add print-no-newline REPL parameter after feedback from CLJS REPL aut…
Browse files Browse the repository at this point in the history
…hors
  • Loading branch information
dnolen committed Feb 19, 2015
1 parent 4e2b1dd commit 7beec09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/clj/cljs/repl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@
)

(defn repl*
[repl-env {:keys [init need-prompt prompt flush read eval print caught]
[repl-env {:keys [init need-prompt prompt flush read eval print print-no-newline caught]
:or {init #()
need-prompt (if (instance? LineNumberingPushbackReader *in*)
#(.atLineStart ^LineNumberingPushbackReader *in*)
Expand All @@ -547,14 +547,16 @@
read repl-read
eval eval-cljs
print println
caught repl-caught}
caught repl-caught
print-no-newline print}
:as opts}]
(print "To quit, type: " :cljs/quit)
(let [ups-deps (cljsc/get-upstream-deps)
{:keys [analyze-path repl-verbose warn-on-undeclared special-fns static-fns] :as opts
:or {warn-on-undeclared true}}
(assoc (merge (-repl-options repl-env) opts)
:print print
:print-no-newline print-no-newline
:flush flush
:ups-libs (:libs ups-deps)
:ups-foreign-libs (:foreign-libs ups-deps))]
Expand Down

0 comments on commit 7beec09

Please sign in to comment.