Преглед изворни кода

org-footnote: check context around definition at a proper place

* lisp/org-footnote.el (org-footnote-at-definition-p): Context must be
  valid at the beginning of line, not at point.
Nicolas Goaziou пре 13 година
родитељ
комит
1e1cde7546
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lisp/org-footnote.el

+ 1 - 1
lisp/org-footnote.el

@@ -249,7 +249,7 @@ footnote text is included and defined locally.
 
 The return value will be nil if not at a footnote definition, and a list with
 label, start, end and definition of the footnote otherwise."
-  (when (org-footnote-in-valid-context-p)
+  (when (save-excursion (beginning-of-line) (org-footnote-in-valid-context-p))
     (save-excursion
       (end-of-line)
       (let ((lim (save-excursion (re-search-backward