Skip to content

Commit

Permalink
fix(editor): clear search marks
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Aug 7, 2022
1 parent f17aa89 commit 6a1bfc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/components/editor/EditorCodemirror.vue
Expand Up @@ -208,6 +208,8 @@ const findAll = (query: string) => {
}
const clearAllMarks = () => {
if (!editor) return
const marks = editor.getAllMarks()
if (marks) {
Expand Down

0 comments on commit 6a1bfc1

Please sign in to comment.