Skip to content

Commit

Permalink
[inspector] Fix def-current-value selecting wrong REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-yakushev authored and bbatsov committed Nov 15, 2024
1 parent c7bed56 commit 9f2d715
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- [#3742](https://github.com/clojure-emacs/cider/issues/3742): Restore syntax highlighting of result in the minibuffer.
- [#3747](https://github.com/clojure-emacs/cider/issues/3747): Fix errors when docstring is `nil`.
- [#3757](https://github.com/clojure-emacs/cider/issues/3757): Fix inspector's def-current-value selecting wrong REPL when multiple are connected.

## 1.16.0 (2024-09-24)

Expand Down
1 change: 0 additions & 1 deletion cider-inspector.el
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ current-namespace."
(interactive (let ((ns (cider-current-ns)))
(list (cider-inspector--read-var-name-from-user ns)
ns)))
(setq cider-inspector--current-repl (cider-current-repl))
(when-let* ((result (cider-sync-request:inspect-def-current-val ns var-name 'v2)))
(cider-inspector--render-value result 'v2)
(message "Defined current inspector value as #'%s/%s" ns var-name)))
Expand Down

0 comments on commit 9f2d715

Please sign in to comment.