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

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

[elpa] externals/vertico 412a656 6/7: Always add cursor space to the ove


From: Protesilaos Stavrou
Subject: [elpa] externals/vertico 412a656 6/7: Always add cursor space to the overlay
Date: Sat, 10 Apr 2021 15:17:18 -0400 (EDT)

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

    Always add cursor space to the overlay
    
    The eobp check was there because of the prompt highlighting extension, 
which is
    gone now. The cursor behaves better if the cursor space is always there.
---
 vertico.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vertico.el b/vertico.el
index 5eb284e..188b3b7 100644
--- a/vertico.el
+++ b/vertico.el
@@ -362,9 +362,7 @@
   "Update candidates overlay `vertico--candidates-ov' with LINES."
   (move-overlay vertico--candidates-ov (point-max) (point-max))
   (overlay-put vertico--candidates-ov 'after-string
-               (apply #'concat
-                      (and (eobp) #(" " 0 1 (cursor t)))
-                      (and lines "\n") lines))
+               (apply #'concat #(" " 0 1 (cursor t)) (and lines "\n") lines))
   (let* ((resize (default-value 'resize-mini-windows))
          (delta (- (max (length lines) (if resize 0 vertico-count)) 
(window-height) -1)))
     (when (or (> delta 0) (eq resize t))



reply via email to

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