Skip to content

Commit d7ff2d4

Browse files
authored
[#282] Fix failing tests
1 parent b7be1e6 commit d7ff2d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/refactor_nrepl/ns/slam/hound/regrow.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
(:require [clojure.set :as set]
66
[clojure.string :as string]
77
[refactor-nrepl.ns.slam.hound.future :refer [as->* cond->*]]
8-
[refactor-nrepl.ns.slam.hound.search :as search])
8+
[refactor-nrepl.ns.slam.hound.search :as search]
9+
[nrepl.middleware.interruptible-eval :refer [*msg*]])
910
(:import (clojure.lang IMapEntry IRecord)
1011
(java.util.regex Pattern)))
1112

@@ -14,7 +15,8 @@
1415

1516
(defn wrap-clojure-repl [f]
1617
(fn [& args]
17-
(swap! *dirty-ns* conj *ns*)
18+
(when-let [ns (some-> *msg* :ns symbol find-ns)]
19+
(swap! *dirty-ns* conj ns))
1820
(apply f args)))
1921

2022
(alter-var-root #'clojure.main/repl wrap-clojure-repl)

0 commit comments

Comments
 (0)