Skip to content

Commit d447d78

Browse files
committed
Fix rectsFor(range:line:) Removing Layout Info
1 parent c7ecbde commit d447d78

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Sources/CodeEditTextView/TextLayoutManager/TextLayoutManager+Public.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ extension TextLayoutManager {
177177
private func rectsFor(range: NSRange, in line: borrowing TextLineStorage<TextLine>.TextLinePosition) -> [CGRect] {
178178
guard let textStorage = (textStorage?.string as? NSString) else { return [] }
179179

180-
_ = preparePositionForDisplay(line)
181-
182180
// Don't make rects in between characters
183181
let realRangeStart = textStorage.rangeOfComposedCharacterSequence(at: range.lowerBound)
184182
let realRangeEnd = textStorage.rangeOfComposedCharacterSequence(at: range.upperBound - 1)

0 commit comments

Comments
 (0)