emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/helm 4ab6bc9774 1/3: Fix conditions in helm-window-decide-


From: ELPA Syncer
Subject: [nongnu] elpa/helm 4ab6bc9774 1/3: Fix conditions in helm-window-decide-split-fn
Date: Fri, 29 Dec 2023 13:00:53 -0500 (EST)

branch: elpa/helm
commit 4ab6bc9774e4f6a04f4b0d6fa37b9ae6c56100ce
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Fix conditions in helm-window-decide-split-fn
    
    Use >= to use respectively helm-window-mosaic-fn or
    helm-window-alternate-split-fn at 3 or 2 candidates included.
---
 helm-utils.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/helm-utils.el b/helm-utils.el
index 7c03280037..4265cdb73f 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -354,9 +354,9 @@ 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 ((>= (length candidates) 3)
                    #'helm-window-mosaic-fn)
-                  ((> (length candidates) 2)
+                  ((>= (length candidates) 2)
                    #'helm-window-alternate-split-fn)
                   (t #'helm-window-default-split-fn))))
     (funcall fn candidates other-window-fn)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]