Skip to content

Commit

Permalink
Appease the byte-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Oct 28, 2022
1 parent 0515f1b commit fc497d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -4221,7 +4221,8 @@ installed to work."

A thin wrapper around `xref-references-in-directory'."
(interactive)
(when (fboundp 'xref-references-in-directory)
(when (and (fboundp 'xref-references-in-directory)
(fboundp 'xref--show-refs))
(let ((project-root (projectile-acquire-root))
(symbol (or symbol (read-from-minibuffer "Lookup in project: " (projectile-symbol-at-point)))))
(xref--show-xrefs (xref-references-in-directory symbol project-root) nil))))
Expand Down

0 comments on commit fc497d0

Please sign in to comment.