Skip to content

Commit ec2c1eb

Browse files
committed
fix(editor): disable multiple selection by edit snippet after search
1 parent 5683ead commit ec2c1eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/renderer/components/editor/TheEditor.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ const init = async () => {
134134
editor.selection.on('changeCursor', () => {
135135
getCursorPosition()
136136
})
137+
editor.on('focus', () => {
138+
if (snippetStore.searchQuery?.length) {
139+
snippetStore.searchQuery = undefined
140+
}
141+
})
137142
138143
// Фиксированный размер для колонки чисел строк
139144
// @ts-ignore

0 commit comments

Comments
 (0)