summaryrefslogtreecommitdiff
path: root/cider-selector.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@tradeo.com>2013-11-10 09:52:14 +0200
committerBozhidar Batsov <bozhidar@tradeo.com>2013-11-10 09:52:14 +0200
commit8fbb5f27e927b993a1c7ad13f8cb9c02b82cd81b (patch)
treeeff6fcd002d322c970f5ba1b98528ed9e07fce13 /cider-selector.el
parent9c4a0b970684c1cfdfeaa475e6058cf433234649 (diff)
Fix build
Diffstat (limited to 'cider-selector.el')
-rw-r--r--cider-selector.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/cider-selector.el b/cider-selector.el
index 39ac2d9f..e6b48eb5 100644
--- a/cider-selector.el
+++ b/cider-selector.el
@@ -46,9 +46,8 @@ DESCRIPTION is a one-line description of what the key selects.")
"Return the most recently visited buffer whose `major-mode' is MODE.
Only considers buffers that are not already visible."
(loop for buffer in (buffer-list)
- when (and (with-current-buffer buffer (derived-mode-p mode))
+ when (and (with-current-buffer buffer (eq major-mode mode))
(not (string-match "^ " (buffer-name buffer)))
- (not (string-match "^\\*" (buffer-name buffer)))
(null (get-buffer-window buffer 'visible)))
return buffer
finally (error "Can't find unshown buffer in %S" mode)))