Skip to content

Commit

Permalink
Corrections detailed in bbatsov#957 comments.
Browse files Browse the repository at this point in the history
* Check buffer-file-name before cache entries.
* Add bug fix to CHANGELOG entries under bugs fixed.
  • Loading branch information
jbenden committed Mar 11, 2016
1 parent 1503b28 commit 1cc6183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

* [#871](https://github.com/bbatsov/projectile/issues/871): Stop advice for `compilation-find-file` to override other advices.
* [#557](https://github.com/bbatsov/projectile/issues/557): stack overflow in `projectile-find-tag'.
* [#957](https://github.com/bbatsov/projectile/pull/957): When opening a specified file from the terminal, do not error inside of `projectile-cache-current-file`.

## 0.13.0 (10/21/2015)

Expand Down
2 changes: 1 addition & 1 deletion projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,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)))
(when (and (gethash (projectile-project-root) projectile-projects-cache) (buffer-file-name (current-buffer)))
(when (and (buffer-file-name) (gethash (projectile-project-root) projectile-projects-cache))
(let* ((abs-current-file (file-truename (buffer-file-name (current-buffer))))
(current-file (file-relative-name abs-current-file current-project)))
(unless (or (projectile-file-cached-p current-file current-project)
Expand Down

0 comments on commit 1cc6183

Please sign in to comment.