Don't apply empty edits
This commit is contained in:
parent
9a0b8a07bf
commit
297787739b
1 changed files with 4 additions and 0 deletions
|
|
@ -71,6 +71,10 @@ export class ObsidianFileSystemOperations implements FileSystemOperations {
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (result.text === text) {
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
view.editor.setValue(result.text);
|
view.editor.setValue(result.text);
|
||||||
|
|
||||||
result.cursors.forEach((movedCursor) => {
|
result.cursors.forEach((movedCursor) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue