]> code.delx.au - gnu-emacs/commitdiff
(shrink-window-if-larger-than-buffer):
authorRichard M. Stallman <rms@gnu.org>
Fri, 16 Sep 1994 08:11:26 +0000 (08:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 16 Sep 1994 08:11:26 +0000 (08:11 +0000)
Do nothing in minibuffer-only frame.

lisp/window.el

index b8535648307666a82695e118206c645d322699d5..256dbcd43d4faba4f26e33108313b6efade49afd 100644 (file)
@@ -170,6 +170,7 @@ or if the window is the only window of its frame."
       (if (and (< 1 (count-windows))
               (= (window-width) (frame-width))
               (pos-visible-in-window-p (point-min) window)
+              (not (eq mini 'only))
               (or (not mini)
                   (< (nth 3 edges)
                      (nth 1 (window-edges mini)))