Permalink
Browse files

combine-responses shouldn't concatenate :session values

  • Loading branch information...
cemerick committed Dec 9, 2012
1 parent 24a0b97 commit c377dea7f2fc52722e0dc77b28a0ecf1fbb2c888
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/clojure/clojure/tools/nrepl.clj
@@ -113,15 +113,15 @@
Certain message slots are combined in special ways:
- only the last :ns is retained
- - :value is accumulated into an ordered collection
+ - :value and :session are accumulated into an ordered collection
- :status is accumulated into a set
- string values (associated with e.g. :out and :err) are concatenated"
[responses]
(reduce
(fn [m [k v]]
(case k
(:id :ns) (assoc m k v)
- :value (update-in m [k] (fnil conj []) v)
+ (:value :session) (update-in m [k] (fnil conj []) v)
:status (update-in m [k] (fnil into #{}) v)
(if (string? v)
(update-in m [k] #(str % v))

0 comments on commit c377dea

Please sign in to comment.