Parcourir la source

Add extension ".bkp" as temp file

Izhak Jakov il y a 4 ans
Parent
commit
5f49a2e840
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/info/filetype.rs

+ 1 - 1
src/info/filetype.rs

@@ -87,7 +87,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", "bk" ])
+            || file.extension_is_one_of( &[ "tmp", "swp", "swo", "swn", "bak", "bkp", "bk" ])
     }
 
     fn is_compiled(&self, file: &File<'_>) -> bool {