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

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

[elpa] externals/vertico 591a5d7 3/4: Minor simplification


From: Protesilaos Stavrou
Subject: [elpa] externals/vertico 591a5d7 3/4: Minor simplification
Date: Fri, 28 May 2021 16:47:02 -0400 (EDT)

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

    Minor simplification
---
 vertico.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/vertico.el b/vertico.el
index 1b39b01..26ad1d8 100644
--- a/vertico.el
+++ b/vertico.el
@@ -471,14 +471,12 @@
   "Exhibit completion UI."
   (vertico--tidy-shadowed-file)
   (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))
          (content (minibuffer-contents-no-properties))
          (before (substring content 0 pt))
          (after (substring content pt))
+         (metadata (completion-metadata before
+                                        minibuffer-completion-table
+                                        minibuffer-completion-predicate))
          ;; bug#47678: `completion-boundaries` fails for `partial-completion`
          ;; if the cursor is moved between the slashes of "~//".
          ;; See also marginalia.el which has the same issue.



reply via email to

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