summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2019-01-24 15:05:13 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-01-24 15:05:13 +0100
commitdeb5c4f39a3b249178bf870f119486b9bd50d009 (patch)
treee685beafe34ca8b9f0dc2e8e52a41f04d35fb23d
parent102142b1a535c1100909f0ac2c68476265ac23cf (diff)
parent24030ef62b149a31ac3b51a13e0149c16f95c47f (diff)
downloadorg-mode-deb5c4f39a3b249178bf870f119486b9bd50d009.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/org.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index e71ba73..532d118 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6027,6 +6027,9 @@ by a #."
"Add text properties for target matches."
(when org-target-link-regexp
(let ((case-fold-search t))
+ ;; `org-target-link-regexp' matches one character before the
+ ;; actual target.
+ (unless (bolp) (forward-char -1))
(when (re-search-forward org-target-link-regexp limit t)
(org-remove-flyspell-overlays-in (match-beginning 1) (match-end 1))
(add-text-properties (match-beginning 1) (match-end 1)