[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm e7466894d0 1/5: Fix behavior of helm-window-decide-sp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm e7466894d0 1/5: Fix behavior of helm-window-decide-split-fn |
Date: |
Thu, 4 Jul 2024 10:00:19 -0400 (EDT) |
branch: elpa/helm
commit e7466894d03721035e8b041d28cb9b5fe97b760f
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Fix behavior of helm-window-decide-split-fn
---
helm-utils.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/helm-utils.el b/helm-utils.el
index 67a8fb98ce..6922a26c32 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -356,10 +356,13 @@ If a prefix arg is given split windows vertically."
(defun helm-window-decide-split-fn (candidates &optional other-window-fn)
"Try to find the best split window fn according to the number of CANDIDATES."
- (let ((fn (cond ((>= (length candidates) 3)
+ (let ((fn (cond (;; 4 or more.
+ (>= (length candidates) 4)
#'helm-window-mosaic-fn)
- ((>= (length candidates) 2)
+ ;; 3 only.
+ ((= (length candidates) 3)
#'helm-window-alternate-split-fn)
+ ;; 2 or less.
(t #'helm-window-default-split-fn))))
(funcall fn candidates other-window-fn)))