branch: externals/expreg
commit 2ef217f39801da9d5530115fb69382af8e0a6151
Author: bruno <cardoso...@gmail.com>
Commit: bruno <cardoso...@gmail.com>

    * expreg.el (expreg-expand): Remove duplicates based on positions
---
 expreg.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/expreg.el b/expreg.el
index 6fdb166be8..ea7697dd94 100644
--- a/expreg.el
+++ b/expreg.el
@@ -261,7 +261,7 @@ This is used to restore point when canceling the expansion 
when
                             expreg-functions))
            (regions (expreg--filter-regions regions orig))
            (regions (expreg--sort-regions regions))
-           (regions (cl-remove-duplicates regions :test #'equal)))
+           (regions (cl-remove-duplicates regions :test #'equal :key #'cdr)))
       (setq-local expreg--next-regions regions)))
 
   ;; Go past all the regions that are smaller than the current region,

Reply via email to