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

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

[elpa] externals/vertico a68f4cf 03/11: vertico--format-candidates: Only


From: Protesilaos Stavrou
Subject: [elpa] externals/vertico a68f4cf 03/11: vertico--format-candidates: Only add space for point if eobp
Date: Thu, 8 Apr 2021 07:11:15 -0400 (EDT)

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

    vertico--format-candidates: Only add space for point if eobp
    
    This avoids a small display glitch if the prompt is selected and the
    point is not at the end.
---
 vertico.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vertico.el b/vertico.el
index e392b14..e4e0bff 100644
--- a/vertico.el
+++ b/vertico.el
@@ -307,7 +307,7 @@
             (vertico--annotate metadata)))
          (max-width (- (* 2 (window-width)) 5))
          (title)
-         (chunks (list #(" " 0 1 (cursor t))))
+         (chunks (and (eobp) (list #(" " 0 1 (cursor t)))))
          (group (completion-metadata-get metadata 'x-group-function)))
     (dolist (ann-cand candidates)
       (push (if (= index (1+ vertico--index))



reply via email to

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