We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7be1e6 commit d7ff2d4Copy full SHA for d7ff2d4
src/refactor_nrepl/ns/slam/hound/regrow.clj
@@ -5,7 +5,8 @@
5
(:require [clojure.set :as set]
6
[clojure.string :as string]
7
[refactor-nrepl.ns.slam.hound.future :refer [as->* cond->*]]
8
- [refactor-nrepl.ns.slam.hound.search :as search])
+ [refactor-nrepl.ns.slam.hound.search :as search]
9
+ [nrepl.middleware.interruptible-eval :refer [*msg*]])
10
(:import (clojure.lang IMapEntry IRecord)
11
(java.util.regex Pattern)))
12
@@ -14,7 +15,8 @@
14
15
16
(defn wrap-clojure-repl [f]
17
(fn [& args]
- (swap! *dirty-ns* conj *ns*)
18
+ (when-let [ns (some-> *msg* :ns symbol find-ns)]
19
+ (swap! *dirty-ns* conj ns))
20
(apply f args)))
21
22
(alter-var-root #'clojure.main/repl wrap-clojure-repl)
0 commit comments