Merge: 0.6.2

This commit is contained in:
Adam Porter 2022-05-27 02:05:56 -05:00
commit 8933f8853c
2 changed files with 7 additions and 1 deletions

View file

@ -1461,7 +1461,8 @@ any link is found."
(setf description (regexp-quote description)))
(when target
(setf target (regexp-quote target))))
(when (re-search-forward org-ql-link-regexp (org-entry-end-position) t)
(when (save-excursion
(re-search-forward org-ql-link-regexp (org-entry-end-position) t))
(pcase description-or-target
('nil (and (or (null target)
(string-match-p target (match-string 1)))