mirror of
https://github.com/gapmiss/badges.git
synced 2026-07-22 08:00:30 +00:00
fix: remove unused _currentLine variable
This commit is contained in:
parent
ba3cf74ed7
commit
87bc426287
2 changed files with 1 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -22,3 +22,4 @@ data.json
|
|||
.DS_Store
|
||||
|
||||
.claude
|
||||
CLAUDE.md
|
||||
11
src/main.ts
11
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue