summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2021-11-10 12:47:10 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2021-11-10 12:47:10 +0100
commitcc1c4fe150cd240a502521c6ca44fdfed2eb1803 (patch)
tree06808739dfe98416c596717e59d55e0b3d450550
parent12833c7a933390361f2ce78c9709e9db68118222 (diff)
Do not trim annotations
-rw-r--r--corfu.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/corfu.el b/corfu.el
index 210b6be..a4927dc 100644
--- a/corfu.el
+++ b/corfu.el
@@ -601,12 +601,10 @@ A scroll bar is displayed from LO to LO+BAR."
(setq cands
(cl-loop for c in cands collect
(cl-loop for s in c collect
- (string-trim (replace-regexp-in-string "[ \t]*\n[ \t]*" " " s)))))
+ (replace-regexp-in-string "[ \t]*\n[ \t]*" " " s))))
(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))))
- (pw (if (> pw 0) (1+ pw) 0))
- (sw (if (> sw 0) (1+ sw) 0))
(width (+ pw cw sw)))
(when (< width corfu-min-width)
(setq cw (+ cw (- corfu-min-width width))