Skip to content

Commit

Permalink
[Fix #1013] Use case-insensitive path comparison on Windows (#1014)
Browse files Browse the repository at this point in the history
Use case-insensitive comparison on Windows to avoid false negatives.
  • Loading branch information
cshtarkov authored and bbatsov committed Jun 30, 2016
1 parent 317bbb8 commit bcc7b3c
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 @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit bcc7b3c

Please sign in to comment.