summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Antolín <omar.antolin@gmail.com>2020-04-14 16:16:19 -0500
committerOmar Antolín <omar.antolin@gmail.com>2020-04-14 16:16:19 -0500
commitaad0aa8a8dcf2aa7e8687f34676227c36ff003cf (patch)
tree77c72c6818d768daeaf8e1bfd73b789196020120
parentb46dbb1045042adae18061961bfdeaf712912be6 (diff)
Copy candidates to avoid permanently changing their face
-rw-r--r--orderless.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/orderless.el b/orderless.el
index c515056..7b30a4b 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))