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

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

[elpa] externals/corfu d0d0938 1/3: corfu--popup-show: Ensure that frame


From: ELPA Syncer
Subject: [elpa] externals/corfu d0d0938 1/3: corfu--popup-show: Ensure that frame is not too large
Date: Sun, 7 Nov 2021 16:57:16 -0500 (EST)

branch: externals/corfu
commit d0d093832baa309e56a141edd2f81db474ae5ba4
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    corfu--popup-show: Ensure that frame is not too large
---
 corfu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corfu.el b/corfu.el
index d13e682..6db4a03 100644
--- a/corfu.el
+++ b/corfu.el
@@ -384,7 +384,7 @@ completion began less than that number of seconds ago."
                 (propertize " " 'display `(space :width (,(- mw bw))))
                 (propertize " " 'face 'corfu-bar 'display `(space :width 
(,bw)))))
          (width (min corfu-max-width
-                     (frame-width)
+                     (- (frame-width) 4) ;; margins, some grace space
                      (apply #'max corfu-min-width
                             (mapcar #'string-width lines))))
          (row 0)



reply via email to

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