Skip to content

Commit

Permalink
Merge: 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alphapapa committed May 27, 2022
2 parents 46f523d + 115500c commit 8933f88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,11 @@ Simple links may also be written manually in either sexp or non-sexp form, like:

Nothing new yet.

** 0.6.2

*Fixed*
+ ~link~ predicate when used in an ~or~'ed query. ([[https://github.com/alphapapa/org-ql/issues/279][#279]]. Thanks to [[https://github.com/telenieko][Marc Fargas]] for reporting.)

** 0.6.1

*Fixed*
Expand Down
3 changes: 2 additions & 1 deletion org-ql.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 8933f88

Please sign in to comment.