diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-11-10 12:47:10 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-11-10 12:47:10 +0100 |
| commit | cc1c4fe150cd240a502521c6ca44fdfed2eb1803 (patch) | |
| tree | 06808739dfe98416c596717e59d55e0b3d450550 | |
| parent | 12833c7a933390361f2ce78c9709e9db68118222 (diff) | |
Do not trim annotations
| -rw-r--r-- | corfu.el | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)) |
