branch: elpa/helm
commit 4193cde3fb48532b55795fe87cb8167888f73f46
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Remove unuseful cond clause
---
 helm-core.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/helm-core.el b/helm-core.el
index b793b73a7c..dba4b0cd8c 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -3573,8 +3573,7 @@ version < emacs-28."
                  ;; lateral constraint to keep the frame inside of the screen
                  (left . ,(cond ((> (+ px helm-frame-width) screen-width)
                                  (- screen-width helm-frame-width))
-                                ((< (- px prmt-width) 0) 0)
-                                (t (- px prmt-width))))
+                                (t (max (- px prmt-width) 0))))
                  ;; Try to put frame at the best possible place.
                  ;; Frame should be below point if enough
                  ;; place, otherwise above point and

Reply via email to