branch: master
commit adbff7ec564cfcc1f11781456a27a5309c88fb0e
Author: Ian D <du...@gnu.org>
Commit: Ian D <du...@gnu.org>

    Remove duplicate targets
    
    * org-edna.el (org-edna-process-form): Run targets through seq-uniq.
---
 org-edna.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-edna.el b/org-edna.el
index 5843086..485c5ae 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -103,7 +103,7 @@
              (setq targets nil))
            (setq state 'finder)
            (let ((markers (apply func args)))
-             (setq targets `(,@targets ,@markers))))
+             (setq targets (seq-uniq `(,@targets ,@markers)))))
           ('action
            (unless (eq action-or-condition 'action)
              (user-error "Actions aren't allowed in this context."))

Reply via email to