In fit-window-to-buffer fix argument in window-size call.
authorMartin Rudalics <rudalics@gmx.at>
Sun, 2 Mar 2014 12:04:29 +0000 (13:04 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 2 Mar 2014 12:04:29 +0000 (13:04 +0100)
* window.el (fit-window-to-buffer): Fix argument in window-size
call when window is horizontally combined.

lisp/ChangeLog
lisp/window.el

index e5c44a1..17f2257 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-02  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (fit-window-to-buffer): Fix argument in window-size
+       call when window is horizontally combined.
+
 2014-03-02  Juanma Barranquero  <lekktu@gmail.com>
 
        * icomplete.el (icomplete-completions): Use string-width.
index be56f8d..95672fe 100644 (file)
@@ -7237,7 +7237,7 @@ accessible position."
         ((and fit-window-to-buffer-horizontally
               (not (window-size-fixed-p window t))
               (window-combined-p nil t))
-         (let* ((total-width (window-size window nil pixelwise))
+         (let* ((total-width (window-size window t pixelwise))
                 (min-width
                  ;; Sanitize MIN-WIDTH.
                  (if (numberp min-width)