mirror of
https://github.com/lizard-heart/obsidian-to-omnifocus.git
synced 2026-07-22 07:30:26 +00:00
Update main.ts
This commit is contained in:
parent
f7b8f3932f
commit
4351cd8d5f
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ export default class TasksToOmnifocus extends Plugin {
|
|||
|
||||
if (this.settings.markComplete) {
|
||||
let completedText = editorText.replace(/- \[ \]/g, "- [x]");
|
||||
editor.setValue(completedText);
|
||||
editor.replaceSelection(completedText);
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue