Skip to content

Commit

Permalink
Stop pe/follow-current-open from continually spitting out projectile …
Browse files Browse the repository at this point in the history
…errors.
  • Loading branch information
Archenoth committed Sep 17, 2015
1 parent 589a090 commit ec1a03d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions project-explorer.el
Original file line number Diff line number Diff line change
Expand Up @@ -1760,8 +1760,10 @@ If project-explorer isn't opened or no project associated with
the current buffer, stop following."
(if pe/follow-current
(when (and (pe/get-project-explorer-window)
(or (pe/get-current-project-explorer-buffer)
(pe/has-cache-p)))
(if (fboundp 'projectile-project-p)
(projectile-project-p)
(or (pe/get-current-project-explorer-buffer)
(pe/has-cache-p))))
(let ((win (selected-window)))
(project-explorer-open)
(select-window win)))
Expand Down

0 comments on commit ec1a03d

Please sign in to comment.