diff options
Diffstat (limited to 'src/ignore.rs')
-rw-r--r-- | src/ignore.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ignore.rs b/src/ignore.rs index 09c0b302..10a81886 100644 --- a/src/ignore.rs +++ b/src/ignore.rs @@ -365,8 +365,7 @@ impl Overrides { let path = path.as_ref(); self.gi.as_ref() .map(|gi| { - let path = &*path.to_string_lossy(); - let mat = gi.matched_utf8(path, is_dir).invert(); + let mat = gi.matched_stripped(path, is_dir).invert(); if mat.is_none() && !is_dir { if gi.num_ignores() > 0 { return Match::Ignored(&self.unmatched_pat); |