Skip to content

Commit dc5fb95

Browse files
committed
Make cider-repl-set-ns to ask for ns in buffers with no ns form
1 parent 98e0d0a commit dc5fb95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cider-repl.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,8 @@ text property `cider-old-input'."
659659
660660
If invoked in a REPL buffer the command will prompt you for the name of the
661661
namespace to switch to."
662-
(interactive (list (if (derived-mode-p 'cider-repl-mode)
662+
(interactive (list (if (or (derived-mode-p 'cider-repl-mode)
663+
(null (cider-ns-form)))
663664
(completing-read "Switch to namespace: "
664665
(cider-sync-request:ns-list))
665666
(cider-current-ns))))

0 commit comments

Comments
 (0)