]> git.eshelyaron.com Git - emacs.git/commitdiff
(shrink-window-if-larger-than-buffer):
authorRichard M. Stallman <rms@gnu.org>
Thu, 15 Sep 1994 03:10:00 +0000 (03:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 15 Sep 1994 03:10:00 +0000 (03:10 +0000)
Use frame-width, not screen-width.

lisp/window.el

index 305df621888afe26b97f8943a2c36e23d83de7c4..b8535648307666a82695e118206c645d322699d5 100644 (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)