+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.
(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)))
(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)))