summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/iswitchb.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el
index c782295c794..70dda5442d5 100644
--- a/lisp/iswitchb.el
+++ b/lisp/iswitchb.el
@@ -1119,7 +1119,7 @@ If BUFFER is visible in the current frame, return nil."
(interactive)
(let ((blist (iswitchb-get-buffers-in-frames 'current)))
;; If the buffer is visible in current frame, return nil
- (when (member buffer blist)
+ (unless (member buffer blist)
;; maybe in other frame or icon
(get-buffer-window buffer 0) ; better than 'visible
)))