branch: externals/orderless
commit aad0aa8a8dcf2aa7e8687f34676227c36ff003cf
Author: Omar Antolín <[email protected]>
Commit: Omar Antolín <[email protected]>

    Copy candidates to avoid permanently changing their face
---
 orderless.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/orderless.el b/orderless.el
index c5150560f3..7b30a4b188 100644
--- a/orderless.el
+++ b/orderless.el
@@ -65,7 +65,8 @@
         (progn
           (setq all
            (save-match-data
-             (cl-loop for candidate in all
+             (cl-loop for original in all
+                      for candidate = (copy-sequence original)
                       when (cl-loop for regexp in regexps
                                     always (orderless-highlight-match
                                             regexp candidate))

Reply via email to