Explorar el Código

Add .bk extension to is_temp.

Clar Charr hace 8 años
padre
commit
eda3e56e4c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/info/filetype.rs

+ 1 - 1
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 {