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

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

[elpa] externals/vertico b5cfdd7 09/48: Handle completion boundaries


From: Stefan Monnier
Subject: [elpa] externals/vertico b5cfdd7 09/48: Handle completion boundaries
Date: Mon, 5 Apr 2021 10:54:40 -0400 (EDT)

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

    Handle completion boundaries
---
 minicomp.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/minicomp.el b/minicomp.el
index 0497931..6995ee7 100644
--- a/minicomp.el
+++ b/minicomp.el
@@ -232,7 +232,11 @@
          (hl-candidates
           (if (and (memq 'orderless completion-styles)
                    (fboundp 'orderless-highlight-matches))
-              (orderless-highlight-matches input candidates)
+              (orderless-highlight-matches
+               (substring input
+                          (car (completion-boundaries input 
minibuffer-completion-table
+                                                      
minibuffer-completion-predicate "")))
+               candidates)
             candidates))
          (ann-candidates (minicomp--annotate metadata candidates))
          (title nil)



reply via email to

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