Skip to content

Commit

Permalink
Merge 60f8d56 into 2dc9c27
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 authored Dec 24, 2019
2 parents 2dc9c27 + 60f8d56 commit 062ab3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rg.el
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ If LITERAL is non nil prompt for literal string. DEFAULT is the default pattern
(when (and (require 'project nil t)
(fboundp 'project-current)
(fboundp 'project-roots))
(car (project-roots (project-current))))
(let ((project (project-current)))
(when project
(car (project-roots project)))))
(condition-case nil
(let* ((file (or file default-directory))
(backend (vc-responsible-backend file)))
Expand Down

0 comments on commit 062ab3c

Please sign in to comment.