Skip to content

Commit 76eb034

Browse files
committed
Fix rectsFor
1 parent 95740ca commit 76eb034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CodeEditTextView/TextLayoutManager/TextLayoutManager+Public.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ extension TextLayoutManager {
203203
/// - line: The line to calculate rects for.
204204
/// - Returns: Multiple bounding rects. Will return one rect for each line fragment that overlaps the given range.
205205
public func rectsFor(range: NSRange) -> [CGRect] {
206-
return lineStorage.linesInRange(range).flatMap { self.rectsFor(range: range, in: $0) }
206+
return linesInRange(range).flatMap { self.rectsFor(range: range, in: $0) }
207207
}
208208

209209
/// Calculates all text bounding rects that intersect with a given range, with a given line position.

0 commit comments

Comments
 (0)