Skip to content

Commit

Permalink
[Fix #2105] Fix no comment syntax defined message when loading buffer…
Browse files Browse the repository at this point in the history
… after running failing test (#2542)
  • Loading branch information
mallt authored and bbatsov committed Dec 21, 2018
1 parent f6ed304 commit 8c00eca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Fix jack-in from inside of remote buffers.
* [#2454](https://github.com/clojure-emacs/cider/pull/2454): Fix erratic inspector behavior when multiple REPLs are connected
* [#2467](https://github.com/clojure-emacs/cider/pull/2467): Make generic CIDER ops use any available nREPL connection.
* [#2105](https://github.com/clojure-emacs/cider/issues/2105): Fix no comment syntax defined message when loading buffer after running a failing test.

### Changes

Expand Down
3 changes: 2 additions & 1 deletion cider-eval.el
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ When invoked with a prefix ARG the command doesn't prompt for confirmation."
(defun cider--quit-error-window ()
"Buries the `cider-error-buffer' and quits its containing window."
(when-let* ((error-win (get-buffer-window cider-error-buffer)))
(quit-window nil error-win)))
(save-excursion
(quit-window nil error-win))))


;;; Dealing with compilation (evaluation) errors and warnings
Expand Down

0 comments on commit 8c00eca

Please # to comment.