Skip to content

Commit

Permalink
Fix bug where only path, no anchor
Browse files Browse the repository at this point in the history
Example: Search for "net/url".
  • Loading branch information
greghendershott committed Nov 19, 2024
1 parent b54ada5 commit 46728bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions racket-describe.el
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ properties. :( So we append the path and anchor, tab separated,
as invisible text. Use `racket--describe-search-parse-result' to
extract."
(mapcar
(pcase-lambda (`(,term ,sort ,what ,from ,fams (,pkg ,pkg-sort)
(pcase-lambda (`(,term ,sort ,what ,from ,fams (,pkg ,pkg-sort)
,path ,anchor))
(let* ((term (propertize term
'racket-affix (list what from pkg fams)
Expand All @@ -699,8 +699,8 @@ extract."
(when (string-match (rx bos
(group-n 1 (+? (not (any ?\t)))) ?\t
(group-n 2 (+? (not (any ?\t)))) ?\t
(group-n 3 (+? (not (any ?\t)))) ?\t
(group-n 4 (+? any))
(group-n 3 (*? (not (any ?\t)))) ?\t
(group-n 4 (*? any))
eos)
str)
(list (match-string 1 str)
Expand Down

0 comments on commit 46728bb

Please sign in to comment.