Same grammar mistake shouldn't be highlighted twice

This commit is contained in:
Simon Rozman 2025-02-28 12:45:33 +01:00
parent d990cd061a
commit bf7b844e1c

View File

@ -1408,6 +1408,7 @@ class BesTreeService extends BesService {
for (let rect of m.highlights) {
if (BesService.isPointInRect(x, y, rect)) {
pointsInRect.push({ el, match: m })
break
}
}
}
@ -2075,6 +2076,7 @@ class BesPlainTextService extends BesService {
for (let rect of m.highlights) {
if (BesService.isPointInRect(x, y, rect)) {
pointsInRect.push({ el: result.range, match: m })
break
}
}
}