Skip to content

Commit

Permalink
[Fix bbatsov#667] Use file-truename when caching the current file.
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelpanic8 committed Mar 31, 2015
1 parent b2d8a4d commit 670c390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ The cache is created both in memory and on the hard drive."
"Add the currently visited file to the cache."
(interactive)
(let* ((current-project (projectile-project-root))
(abs-current-file (buffer-file-name (current-buffer)))
(abs-current-file (file-truename (buffer-file-name (current-buffer))))
(current-file (file-relative-name abs-current-file current-project)))
(when (gethash (projectile-project-root) projectile-projects-cache)
(unless (or (projectile-file-cached-p current-file current-project)
Expand Down

0 comments on commit 670c390

Please sign in to comment.