Explorar o código

Merge branch 'maint'

Kyle Meyer %!s(int64=4) %!d(string=hai) anos
pai
achega
f874644e5b
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      lisp/ol.el

+ 3 - 4
lisp/ol.el

@@ -1178,10 +1178,9 @@ of matched result, which is either `dedicated' or `fuzzy'."
 	     (catch :name-match
 	       (goto-char (point-min))
 	       (while (re-search-forward name nil t)
-		 (let ((element (org-element-at-point)))
-		   (when (equal words
-				(split-string
-				 (org-element-property :name element)))
+		 (let* ((element (org-element-at-point))
+			(name (org-element-property :name element)))
+		   (when (and name (equal words (split-string name)))
 		     (setq type 'dedicated)
 		     (beginning-of-line)
 		     (throw :name-match t))))