(shrink-window-if-larger-than-buffer):

Use frame-width, not screen-width.
This commit is contained in:
Richard M. Stallman
1994-09-15 03:10:00 +00:00
parent 2677ad61f5
commit ad656bdc4e

View File

@@ -168,7 +168,7 @@ or if the window is the only window of its frame."
(mini (cdr (assq 'minibuffer (frame-parameters))))
(edges (window-edges (selected-window))))
(if (and (< 1 (count-windows))
(= (window-width) (screen-width))
(= (window-width) (frame-width))
(pos-visible-in-window-p (point-min) window)
(or (not mini)
(< (nth 3 edges)