mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-24 10:03:20 +00:00
Fixed:
- Now the empty (or deleted) file could be conflict-resolved.
This commit is contained in:
1 parent
5c96c7f99b
commit
618600c753
1 file changed
+3
@@ -1901,6 +1901,9 @@ Or if you are sure know what had been happened, we can unlock the database from
|
|||||||
const ret = [] as Diff[];
|
const ret = [] as Diff[];
|
||||||
do {
|
do {
|
||||||
const d = src.shift();
|
const d = src.shift();
|
||||||
|
if (d === undefined) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
const pieces = d[1].split(/([^\n]*\n)/).filter(f => f != "");
|
const pieces = d[1].split(/([^\n]*\n)/).filter(f => f != "");
|
||||||
if (typeof (d) == "undefined") {
|
if (typeof (d) == "undefined") {
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user