Skip to content

Commit b2ac07d

Browse files
committed
[Fix #1077] Respect cider-repl-display-in-current-window in cider-switch-to-last-clojure-buffer
1 parent 1f6a375 commit b2ac07d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ when in buffer that's not visiting a file (e.g. a REPL buffer).
9898
* The error buffer no longer pops up when there is no error to display.
9999
* `cider-find-resource` now correctly throws an error when no path is provided.
100100
* [#946](https://github.com/clojure-emacs/cider/issues/946): `cider-stacktrace-mode` is now enabled before the error buffer is displayed.
101+
* [#1077](https://github.com/clojure-emacs/cider/issues/1077): Respect `cider-repl-display-in-current-window` in `cider-switch-to-last-clojure-buffer`.
101102

102103
## 0.8.2 / 2014-12-21
103104

cider-interaction.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ Clojure buffer and the REPL buffer."
487487
(interactive)
488488
(if (and (derived-mode-p 'cider-repl-mode)
489489
(buffer-live-p cider-last-clojure-buffer))
490-
(pop-to-buffer cider-last-clojure-buffer)
490+
(if cider-repl-display-in-current-window
491+
(switch-to-buffer cider-last-clojure-buffer nil t)
492+
(pop-to-buffer cider-last-clojure-buffer))
491493
(message "Don't know the original Clojure buffer")))
492494

493495
(defun cider-find-and-clear-repl-buffer ()

0 commit comments

Comments
 (0)