diff --git a/CHANGELOG.md b/CHANGELOG.md index 42b245551..a2209463c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ * [#576](https://github.com/bbatsov/projectile/issues/576): `projectile-replace` stomps regular expressions. * [#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`. * [#984](https://github.com/bbatsov/projectile/pull/984): Error when a project is a symlink that changes target. +* [#1013](https://github.com/bbatsov/projectile/issues/1013): projectile-project-buffer-p may return incorrect result on Windows. ## 0.13.0 (2015-10-21) diff --git a/projectile.el b/projectile.el index 777ed5e9b..5c66b6e73 100644 --- a/projectile.el +++ b/projectile.el @@ -1120,7 +1120,7 @@ this case unignored files will be absent from FILES." (string-equal (file-remote-p default-directory) (file-remote-p project-root)) (not (string-match-p "^http\\(s\\)?://" default-directory)) - (string-prefix-p project-root (file-truename default-directory))))) + (string-prefix-p project-root (file-truename default-directory) (eq system-type 'windows-nt))))) (defun projectile-ignored-buffer-p (buffer) "Check if BUFFER should be ignored."