소스 검색

org-babel: a bug in reference-resolution caused by a typo

Dan Davison 15 년 전
부모
커밋
4dba8ad21f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      contrib/babel/lisp/org-babel-ref.el

+ 1 - 1
contrib/babel/lisp/org-babel-ref.el

@@ -116,7 +116,7 @@ return nil."
             ;; goto ref in the current buffer
             ;; goto ref in the current buffer
             (or (and (not args)
             (or (and (not args)
                      (or (re-search-forward result_regexp nil t)
                      (or (re-search-forward result_regexp nil t)
-                         (re-search-forward result_regexp nil t)))
+                         (re-search-backward result_regexp nil t)))
                 (re-search-forward regexp nil t)
                 (re-search-forward regexp nil t)
                 (re-search-backward regexp nil t)
                 (re-search-backward regexp nil t)
                 ;; check the Library of Babel
                 ;; check the Library of Babel