Skip to content

Commit

Permalink
Fix highlighting of the closing bracket.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 9, 2023
1 parent f41bb5c commit 5227bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spellcheck/spellcheck_highlight_syntax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ EntitiesInText::iterator Insert(
}
const auto length = i->length();
for (const auto &entity : entities) {
if (entity.offset() + entity.length() >= length) {
if (entity.offset() + entity.length() > length) {
break;
}
auto j = text.entities.insert(next, entity);
Expand Down

0 comments on commit 5227bec

Please sign in to comment.