Skip to content

Commit 6a1bfc1

Browse files
committed
fix(editor): clear search marks
1 parent f17aa89 commit 6a1bfc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/renderer/components/editor/EditorCodemirror.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ const findAll = (query: string) => {
208208
}
209209
210210
const clearAllMarks = () => {
211+
if (!editor) return
212+
211213
const marks = editor.getAllMarks()
212214
213215
if (marks) {

0 commit comments

Comments
 (0)