feat: add replace mode.

This commit is contained in:
2021-03-17 15:08:13 +08:00
parent f19ed28baa
commit 197d588db5
+3 -1
View File
@@ -142,8 +142,10 @@ void walkPath(FileSystemEntity path) {
state = STATE.notMatch;
}
if (isReplace) {
if (state == STATE.caching)
if (state == STATE.caching) {
tempOperations.forEach((ele) => ele.commented = true);
currentTempOperations.forEach((ele) => ele.commented = true);
}
tempOperations.addAll(currentTempOperations);
currentTempOperations.clear();
}