Commit 7e1899d7 authored by Martin Rudalics's avatar Martin Rudalics

Fix Bugs 16351 and 16383 when rounding in balance-windows-2.

* window.el (balance-windows-2): While rounding don't give a
window more than the remainder.  Bug#16351, Bug#16383.
parent e90dec2b
2014-01-07 Martin Rudalics <rudalics@gmx.at>
* window.el (balance-windows-2): While rounding don't give a
window more than the remainder. Bug#16351, Bug#16383.
2014-01-07 Glenn Morris <rgm@gnu.org>
* menu-bar.el (menu-bar-help-extra-packages): Remove.
......
......@@ -4541,7 +4541,7 @@ is non-nil)."
(setq sub first)
(while (and sub (> rest 0))
(unless (window--resize-child-windows-skip-p window)
(set-window-new-pixel sub char-size t)
(set-window-new-pixel sub (min rest char-size) t)
(setq rest (- rest char-size)))
(setq sub (window-right sub)))
......@@ -4550,7 +4550,7 @@ is non-nil)."
(setq sub first)
(while (and sub (> rest 0))
(unless (eq (window-new-normal sub) 'ignore)
(set-window-new-pixel sub char-size t)
(set-window-new-pixel sub (min rest char-size) t)
(setq rest (- rest char-size)))
(setq sub (window-right sub)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment