Same grammar mistake shouldn't be highlighted twice
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user