Same grammar mistake shouldn't be highlighted twice
This commit is contained in:
parent
d990cd061a
commit
bf7b844e1c
@ -1408,6 +1408,7 @@ class BesTreeService extends BesService {
|
|||||||
for (let rect of m.highlights) {
|
for (let rect of m.highlights) {
|
||||||
if (BesService.isPointInRect(x, y, rect)) {
|
if (BesService.isPointInRect(x, y, rect)) {
|
||||||
pointsInRect.push({ el, match: m })
|
pointsInRect.push({ el, match: m })
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2075,6 +2076,7 @@ class BesPlainTextService extends BesService {
|
|||||||
for (let rect of m.highlights) {
|
for (let rect of m.highlights) {
|
||||||
if (BesService.isPointInRect(x, y, rect)) {
|
if (BesService.isPointInRect(x, y, rect)) {
|
||||||
pointsInRect.push({ el: result.range, match: m })
|
pointsInRect.push({ el: result.range, match: m })
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user