瀏覽代碼

ob-ref: bug fix in new function

* lisp/ob-ref.el (org-babel-ref-goto-headline-id): Fix bug.
Eric Schulte 13 年之前
父節點
當前提交
cb67a439b1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lisp/ob-ref.el

+ 1 - 0
lisp/ob-ref.el

@@ -82,6 +82,7 @@ the variable."
 		out))))))
 
 (defun org-babel-ref-goto-headline-id (id)
+  (goto-char (point-min))
   (let ((rx (regexp-quote id)))
     (or (re-search-forward
 	 (concat "^[ \t]*:CUSTOM_ID:[ \t]+" rx "[ \t]*$") nil t)