diff --git a/src/components/BSMap/BSRow.vue b/src/components/BSMap/BSRow.vue index 3631c2b..3aa760c 100644 --- a/src/components/BSMap/BSRow.vue +++ b/src/components/BSMap/BSRow.vue @@ -56,7 +56,7 @@ const texts = computed(() => { function isFocused(row: number, offset: number, length: number): boolean { const { selection } = editorStore; return ( - selection != null && + typeof selection != 'undefined' && selection.row == row && selection.offset >= offset && selection.offset <= offset + length diff --git a/src/components/Editor.vue b/src/components/Editor.vue index bfa64eb..4a03387 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -7,14 +7,20 @@