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

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

[elpa] externals/vertico-posframe a4691cb 1/5: * vertico-posframe.el (ve


From: ELPA Syncer
Subject: [elpa] externals/vertico-posframe a4691cb 1/5: * vertico-posframe.el (vertico-posframe--post-command-function): Add note about count.
Date: Fri, 29 Oct 2021 20:57:30 -0400 (EDT)

branch: externals/vertico-posframe
commit a4691cb9180d2d1c9e5473ee128523aef727e378
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * vertico-posframe.el (vertico-posframe--post-command-function): Add note 
about count.
---
 vertico-posframe.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vertico-posframe.el b/vertico-posframe.el
index 2fc256a..aff3bee 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -254,6 +254,9 @@ Show STRING when it is a string."
       (with-current-buffer (window-buffer (active-minibuffer-window))
         (let* ((point (point))
                (count (vertico-posframe--format-count))
+               ;; NOTE: Vertico count in minibuffer is before-string
+               ;; of an overlay, so the result of `buffer-string' will
+               ;; not include it.
                (contents (buffer-string))
                (n (+ point (length count)))
                (cursor-face



reply via email to

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