summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-09-16 08:11:26 +0000
committerRichard M. Stallman <rms@gnu.org>1994-09-16 08:11:26 +0000
commit1e8e64230e0b3fdf4f4045d7e7d60b455c25f0a2 (patch)
treecef624d4e3f470aa0123bb918f4115b7c241bd98 /lisp/window.el
parentaf998676c2d2a79db418aa25e186f174f360144f (diff)
downloademacs-1e8e64230e0b3fdf4f4045d7e7d60b455c25f0a2.tar.gz
(shrink-window-if-larger-than-buffer):
Do nothing in minibuffer-only frame.
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/window.el b/lisp/window.el
index b8535648307..256dbcd43d4 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -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)))