Skip to content

Commit 98e0d0a

Browse files
committed
Strip :reload and :reload from ns-form
1 parent 42db94e commit 98e0d0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cider-interaction.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,8 @@ is nil use `cider-interactive-eval-handler'."
12521252
START-POS is a starting position of the form in the original context."
12531253
(let* ((ns-form (if (cider-ns-form-p form)
12541254
""
1255-
(or (cider-ns-form)
1255+
(or (-when-let (form (cider-ns-form))
1256+
(replace-regexp-in-string ":reload\\(-all\\)?\\>" "" form))
12561257
(->> (get-buffer (cider-current-repl-buffer))
12571258
(buffer-local-value 'nrepl-buffer-ns)
12581259
(setq nrepl-buffer-ns)

0 commit comments

Comments
 (0)