Skip to content

Commit

Permalink
Fix last change to counsel--project-current
Browse files Browse the repository at this point in the history
* counsel.el (counsel--project-current): Fix when outside
project (#3041).
  • Loading branch information
basil-conto committed Apr 13, 2024
1 parent 49c7495 commit 28ac6c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion counsel.el
Original file line number Diff line number Diff line change
Expand Up @@ -6434,7 +6434,8 @@ Use `projectile-project-root' to determine the root."
Use `project-current' to determine the root."
(let ((proj (and (fboundp 'project-current)
(project-current))))
(cond ((fboundp 'project-root)
(cond ((not proj) nil)
((fboundp 'project-root)
(project-root proj))
((fboundp 'project-roots)
(car (project-roots proj))))))
Expand Down

0 comments on commit 28ac6c7

Please sign in to comment.