Browse Source

Tiny refactoring

* lisp/org.el (org-refile-get-targets): Tiny refactoring.
Nicolas Goaziou 9 years ago
parent
commit
54b42f7e59
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/org.el

+ 1 - 2
lisp/org.el

@@ -11672,8 +11672,7 @@ on the system \"/user@host:\"."
 					(regexp-quote heading)))
 			    (target
 			     (org-link-display-format
-			      (if (not org-refile-use-outline-path)
-				  (org-match-string-no-properties 4)
+			      (if (not org-refile-use-outline-path) heading
 				(mapconcat
 				 #'org-protect-slash
 				 (append