]> git.eshelyaron.com Git - emacs.git/commitdiff
(window_loop, case GET_BUFFER_WINDOW):
authorRichard M. Stallman <rms@gnu.org>
Wed, 6 Nov 1996 07:38:41 +0000 (07:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 6 Nov 1996 07:38:41 +0000 (07:38 +0000)
Don't find any minibuffer window
except the one that is currently in use.

src/window.c

index 61c717397f0e3a7c93b64cb48b93b1ea1f80efa0..f23b6e3fb319e7d138fa1a68a7810582d0a90f60 100644 (file)
@@ -1319,7 +1319,11 @@ window_loop (type, obj, mini, frames)
        switch (type)
          {
          case GET_BUFFER_WINDOW:
-           if (XBUFFER (XWINDOW (w)->buffer) == XBUFFER (obj))
+           if (XBUFFER (XWINDOW (w)->buffer) == XBUFFER (obj)
+               /* Don't find any minibuffer window
+                  except the one that is currently in use.  */
+               && (MINI_WINDOW_P (XWINDOW (w))
+                   ? EQ (w, minibuf_window) : 1))
              return w;
            break;