diff --git a/.gitignore b/.gitignore index 43d0e14..d66be57 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ data.json .DS_Store .claude +CLAUDE.md \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 8fb241f..e8ee2ec 100644 --- a/src/main.ts +++ b/src/main.ts @@ -96,17 +96,6 @@ const viewPlugin = ViewPlugin.fromClass(class { for (let n of lines) { const line = view.state.doc.line(n); - const startOfLine = line.from; - const endOfLine = line.to; - - let _currentLine = false; - currentSelections.forEach((r) => { - if (r.to >= startOfLine && r.from <= endOfLine) { - _currentLine = true; - return; - } - }); - let matches = Array.from(line.text.matchAll(REGEXP)) for (const match of matches) { let add = true