This is an automated email from the ASF dual-hosted git repository.

rstrickland pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git


The following commit(s) were added to refs/heads/main by this push:
     new 4f6a7c8  Searching results highlighting appear as expected.
4f6a7c8 is described below

commit 4f6a7c8308e52959b4442d7a4eb6353c4a798a5e
Author: Robert Strickland <[email protected]>
AuthorDate: Fri Mar 27 13:59:46 2026 -0500

    Searching results highlighting appear as expected.
---
 src/svelte/src/utilities/highlights.ts | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/svelte/src/utilities/highlights.ts 
b/src/svelte/src/utilities/highlights.ts
index e00cca1..ce35e2b 100644
--- a/src/svelte/src/utilities/highlights.ts
+++ b/src/svelte/src/utilities/highlights.ts
@@ -99,23 +99,23 @@ class ViewportByteIndications extends 
SimpleWritable<Uint8Array> {
     if (selectionData.active || selectionData.makingSelection()) {
       const offsetPartitions = [
         generateSelectionCategoryParition(0, start, (byte) => {
-          byte[0] &= ~category1.indexOf('selected')
+          return (byte &= ~category1.indexOf('selected'))
         }),
         generateSelectionCategoryParition(start, editedEnd, (byte) => {
-          byte[0] |= category1.indexOf('selected')
+          return (byte |= category1.indexOf('selected'))
         }),
         generateSelectionCategoryParition(
           Math.max(originalEnd, editedEnd),
           VIEWPORT_CAPACITY_MAX,
           (byte) => {
-            byte[0] &= ~category1.indexOf('selected')
+            return (byte &= ~category1.indexOf('selected'))
           }
         ),
       ]
       this.store.update((indications) => {
         for (const partition of offsetPartitions) {
           for (let i = partition.start; i < partition.end; i++)
-            partition.assignByte(indications.subarray(i, i + 1))
+            indications[i] = partition.assignByte(indications[i])
         }
         return indications
       })
@@ -137,12 +137,12 @@ export const viewportByteIndicators = new 
ViewportByteIndications()
 type CategoryOffsetParition = {
   start: number
   end: number
-  assignByte: (byte: Uint8Array) => void
+  assignByte: (byte: number) => number
 }
 function generateSelectionCategoryParition(
   start: number,
   end: number,
-  assignmentFn: (byte: Uint8Array) => void
+  assignmentFn: (byte: number) => number
 ): CategoryOffsetParition {
   return {
     start,

Reply via email to