]> code.delx.au - gnu-emacs/blobdiff - lisp/window.el
Merge from origin/emacs-25
[gnu-emacs] / lisp / window.el
index e086efb594d97f8895f5a9e1bfe033e9b97d8e05..9f63e86ce9568aae13ec305b764fe4a3eaef610e 100644 (file)
@@ -8560,10 +8560,10 @@ WINDOWS is a list of windows associated with PROCESS.  REDUCER is
 a two-argument function used to combine the widths and heights of
 the given windows."
   (when windows
-    (let ((width (window-body-width (car windows)))
+    (let ((width (window-max-chars-per-line (car windows)))
           (height (window-body-height (car windows))))
       (dolist (window (cdr windows))
-        (setf width (funcall reducer width (window-body-width window)))
+        (setf width (funcall reducer width (window-max-chars-per-line window)))
         (setf height (funcall reducer height (window-body-height window))))
       (cons width height))))