Exclude temporary file changes from FileWatcher (#945)

This commit is contained in:
Luck 2018-04-26 18:44:53 +01:00
parent 4cdff14c7c
commit 316e177c1d
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -164,7 +164,7 @@ public class FileWatcher {
String fileName = context.toString();
// ignore temporary changes
if (fileName.endsWith(".tmp")) {
if (fileName.endsWith(".tmp") || fileName.endsWith(".swp") || fileName.endsWith(".swx") || fileName.endsWith(".swpz")) {
continue;
}