Skip to content

Commit

Permalink
Skip unnecessary newlines when hitting only Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
trptcolin committed Jun 21, 2012
1 parent 1101e0d commit 4d8f250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/reply/eval_modes/nrepl.clj
Expand Up @@ -56,6 +56,7 @@
(flush)
(when (and ns (not (:session options)))
(reset! current-ns ns)))))
(when (:interactive options) (println))
(reset! current-command-id nil)
@current-ns))

Expand All @@ -64,7 +65,6 @@
([connection {:keys [prompt] :as options}]
(let [{:keys [major minor incremental qualifier]} *clojure-version*]
(loop [ns (execute-with-client connection options "")]
(println)
(prompt ns)
(flush)
(let [eof (Object.)
Expand All @@ -83,7 +83,7 @@
:else
(recur (execute-with-client
connection
options
(assoc options :interactive true)
(binding [*print-meta* true]
(pr-str read-result))))))))))

Expand Down

0 comments on commit 4d8f250

Please sign in to comment.