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

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

[elpa] externals/corfu f7de592992 1/3: Minor cleanup


From: ELPA Syncer
Subject: [elpa] externals/corfu f7de592992 1/3: Minor cleanup
Date: Tue, 5 Nov 2024 06:57:46 -0500 (EST)

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

    Minor cleanup
---
 corfu.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/corfu.el b/corfu.el
index 505d41cbb7..529f642f40 100644
--- a/corfu.el
+++ b/corfu.el
@@ -742,9 +742,9 @@ FRAME is the existing frame."
   (let* ((cw (cl-loop for x in cands maximize (string-width (car x))))
          (pw (cl-loop for x in cands maximize (string-width (cadr x))))
          (sw (cl-loop for x in cands maximize (string-width (caddr x))))
-         ;; -4 because of margins and some additional safety
-         (max-width (min corfu-max-width (- (frame-width) 4)))
-         (width (min (max corfu--width corfu-min-width (+ pw cw sw)) 
max-width))
+         (width (min (max corfu--width corfu-min-width (+ pw cw sw))
+                     ;; -4 because of margins and some additional safety
+                     (min corfu-max-width (- (frame-width) 4))))
          (trunc (not (display-graphic-p))))
     (setq corfu--width width)
     (list pw width



reply via email to

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