From 184ed36136d7d78a914979009db208518312137c Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Mon, 12 Dec 2016 10:16:23 +0100 Subject: [PATCH] Strengthen conditions for resizing sibling windows (Bug#25169) * lisp/window.el (window-resize, delete-window): Resize other siblings only if `window-combination-resize' equals t (Bug#25169). --- lisp/window.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/window.el b/lisp/window.el index 5255905f457..fdb67ed4a87 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -2797,7 +2797,7 @@ instead." window delta horizontal ignore nil nil nil t))) (window--resize-reset frame horizontal) (window--resize-this-window window delta horizontal ignore t) - (if (and (not window-combination-resize) + (if (and (not (eq window-combination-resize t)) (window-combined-p window horizontal) (setq sibling (or (window-right window) (window-left window))) (window-sizable-p @@ -4049,7 +4049,7 @@ that is its frame's root window." (sibling (or (window-left window) (window-right window)))) (window--resize-reset frame horizontal) (cond - ((and (not window-combination-resize) + ((and (not (eq window-combination-resize t)) sibling (window-sizable-p sibling size horizontal nil t)) ;; Resize WINDOW's sibling. (window--resize-this-window sibling size horizontal nil t) -- 2.39.2