From ca6edca2429c01dd7905c0de835bbdb23754b754 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Sun, 29 Nov 2015 10:14:00 +0100 Subject: [PATCH] * lisp/window.el (split-window): Don't sanitize sizes when SIZE is non-nil. --- lisp/window.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/window.el b/lisp/window.el index 67e39ecc9dd..54ac8115727 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -4851,8 +4851,9 @@ frame. The selected window is not changed by this function." (set-window-parameter (window-parent new) 'window-atom t)) (set-window-parameter new 'window-atom t))) - ;; Sanitize sizes. - (window--sanitize-window-sizes frame horizontal) + ;; Sanitize sizes unless SIZE was specified. + (unless size + (window--sanitize-window-sizes frame horizontal)) (run-window-configuration-change-hook frame) (run-window-scroll-functions new) -- 2.11.4.GIT