Fix mistake in last iswitchb.el bug fix.
authorDeniz Dogan <deniz@dogan.se>
Sat, 4 Jun 2011 15:13:11 +0000 (17:13 +0200)
committerDeniz Dogan <deniz@dogan.se>
Sat, 4 Jun 2011 15:13:11 +0000 (17:13 +0200)
lisp/iswitchb.el

index c782295..70dda54 100644 (file)
@@ -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
       )))