Skip to content

Commit 8c00eca

Browse files
malltbbatsov
authored andcommitted
[Fix #2105] Fix no comment syntax defined message when loading buffer after running failing test (#2542)
1 parent f6ed304 commit 8c00eca

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Fix jack-in from inside of remote buffers.
2323
* [#2454](https://github.com/clojure-emacs/cider/pull/2454): Fix erratic inspector behavior when multiple REPLs are connected
2424
* [#2467](https://github.com/clojure-emacs/cider/pull/2467): Make generic CIDER ops use any available nREPL connection.
25+
* [#2105](https://github.com/clojure-emacs/cider/issues/2105): Fix no comment syntax defined message when loading buffer after running a failing test.
2526

2627
### Changes
2728

cider-eval.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ When invoked with a prefix ARG the command doesn't prompt for confirmation."
168168
(defun cider--quit-error-window ()
169169
"Buries the `cider-error-buffer' and quits its containing window."
170170
(when-let* ((error-win (get-buffer-window cider-error-buffer)))
171-
(quit-window nil error-win)))
171+
(save-excursion
172+
(quit-window nil error-win))))
172173

173174

174175
;;; Dealing with compilation (evaluation) errors and warnings

0 commit comments

Comments
 (0)