[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico d8d4aad 3/6: Determine the completion metadata
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/vertico d8d4aad 3/6: Determine the completion metadata correctly |
Date: |
Sat, 10 Apr 2021 05:55:00 -0400 (EDT) |
branch: externals/vertico
commit d8d4aad02ddda604c1ea22d68b18c506c87971cd
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Determine the completion metadata correctly
See https://github.com/oantolin/embark/pull/200
---
vertico.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/vertico.el b/vertico.el
index 5d9c9e9..6b13421 100644
--- a/vertico.el
+++ b/vertico.el
@@ -400,11 +400,13 @@
(defun vertico--exhibit ()
"Exhibit completion UI."
(vertico--tidy-shadowed-file)
- (let* ((content (minibuffer-contents-no-properties))
- (metadata (completion-metadata content
+ (let* ((pt (max 0 (- (point) (minibuffer-prompt-end))))
+ (metadata (completion-metadata (buffer-substring-no-properties
+ (minibuffer-prompt-end)
+ (+ (minibuffer-prompt-end) pt))
minibuffer-completion-table
minibuffer-completion-predicate))
- (pt (max 0 (- (point) (minibuffer-prompt-end))))
+ (content (minibuffer-contents-no-properties))
(before (substring content 0 pt))
(after (substring content pt))
;; BUG: `completion-boundaries` fails for `partial-completion`
- [elpa] externals/vertico updated (f48679b -> 5aaa5f6), Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 6d0963c 1/6: Work around `completion-boundaries' bug in Emacs 27.1, Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico d8d4aad 3/6: Determine the completion metadata correctly,
Protesilaos Stavrou <=
- [elpa] externals/vertico c72e8de 2/6: Ensure that pt is never negative, Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 5511a75 4/6: Add link to upstream bug, Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico c3c5614 5/6: README: Mention initials completion style, Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 5aaa5f6 6/6: Version 0.3, Protesilaos Stavrou, 2021/04/10