]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix size calculation in window--max-delta-1.
authorMartin Rudalics <rudalics@gmx.at>
Sat, 1 Mar 2014 11:11:13 +0000 (12:11 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 1 Mar 2014 11:11:13 +0000 (12:11 +0100)
* window.el (window--max-delta-1): Round down when calculating
how many lines/columns we can get from a window.

lisp/ChangeLog
lisp/window.el

index 82157a452097b2e508ccd55db889408d5dce20bc..d3419412ebe34c8cce86e95a665c0cf23e4ef9c2 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-01  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (window--max-delta-1): Round down when calculating
+       how many lines/columns we can get from a window.
+
 2014-03-01  Glenn Morris  <rgm@gnu.org>
 
        * isearch.el (search-invisible): Doc fix.
index e51c54012afe22ba15496edbc8023d786f17c6e3..be56f8dd6946553fceb3c9150bbc881c6407538c 100644 (file)
@@ -1470,7 +1470,7 @@ by which WINDOW can be shrunk."
                  (setq delta
                        (+ delta
                           (max
-                           (- (window-size sub horizontal pixelwise 'ceiling)
+                           (- (window-size sub horizontal pixelwise 'floor)
                               (window-min-size
                                sub horizontal ignore pixelwise))
                            0)))))