Explorar o código

Remove duplicates in refile targets

* lisp/org.el (org-refile-get-targets): Remove duplicates in refile
  targets.
Nicolas Goaziou %!s(int64=7) %!d(string=hai) anos
pai
achega
7560a49459
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -11825,7 +11825,7 @@ order.")
 	      (org-refile-cache-put tgs (buffer-file-name) descre))
 	    (setq targets (append tgs targets))))))
     (message "Getting targets...done")
-    (nreverse targets)))
+    (nreverse (delete-dups targets))))
 
 (defun org-protect-slash (s)
   (replace-regexp-in-string "/" "\\/" s nil t))