Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-12-23 20:17:18 +04:00
parent 8bef96fbe0
commit 380a608ee8
4 changed files with 32 additions and 16 deletions

View File

@@ -101,8 +101,12 @@ private func commitEntity(_ utf16: String.UTF16View, _ type: CurrentEntityType,
var overlaps = false
for entity in entities {
if entity.range.overlaps(indexRange) {
overlaps = true
break
if case .Spoiler = entity.type {
} else {
overlaps = true
break
}
}
}
if !overlaps {