summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClar Charr <clar@charr.xyz>2017-09-17 23:08:25 -0400
committerClar Charr <clar@charr.xyz>2017-09-17 23:08:25 -0400
commiteda3e56e4ce328c7240bbaf341122c6747f7ad4d (patch)
treef9837b29ffdc4397a179c5cc0b5f6000d1cc46b9
parent4819c4721b3485b8a7d79871c8de1ff817f964d4 (diff)
Add .bk extension to is_temp.
-rw-r--r--src/info/filetype.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/info/filetype.rs b/src/info/filetype.rs
index a35aa62..7b9fc78 100644
--- a/src/info/filetype.rs
+++ b/src/info/filetype.rs
@@ -81,7 +81,7 @@ impl FileExtensions {
fn is_temp(&self, file: &File) -> bool {
file.name.ends_with('~')
|| (file.name.starts_with('#') && file.name.ends_with('#'))
- || file.extension_is_one_of( &[ "tmp", "swp", "swo", "swn", "bak" ])
+ || file.extension_is_one_of( &[ "tmp", "swp", "swo", "swn", "bak", "bk" ])
}
fn is_compiled(&self, file: &File) -> bool {