From 0fa1f344824530f9ee374cc0d84fa02b61b303bf Mon Sep 17 00:00:00 2001 From: Joost Kremers Date: Wed, 25 Nov 2015 13:36:06 +0100 Subject: [PATCH] * lisp/window.el (window-splittable-p): use `window-total-width' Take the window margins into account when determining if a window can be split horizontally. Copyright-paperwork-exempt: yes --- lisp/window.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/window.el b/lisp/window.el index 6d18905..bcd8922 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -6115,7 +6115,7 @@ window-splittable-p ;; sense nowadays. This can be done more intuitively by ;; setting up `split-width-threshold' appropriately. (numberp split-width-threshold) - (>= (window-width window) + (>= (window-total-width window) (max split-width-threshold (* 2 (max window-min-width 2))))) ;; A window can be split vertically when its height is not -- 2.6.0.GIT