deduping by byteOffset alone for clarity.

This commit is contained in:
jpirnay
2026-03-07 10:59:48 +01:00
parent 579d140ee9
commit c083079898
+1 -1
View File
@@ -143,7 +143,7 @@ void sortAndDedupeBreakInfos(std::vector<Hyphenator::BreakInfo>& infos) {
infos.erase(std::unique(infos.begin(), infos.end(),
[](const Hyphenator::BreakInfo& a, const Hyphenator::BreakInfo& b) {
return a.byteOffset == b.byteOffset && a.requiresInsertedHyphen == b.requiresInsertedHyphen;
return a.byteOffset == b.byteOffset;
}),
infos.end());
}