Skip to content

Commit d28d9b0

Browse files
committed
Selection Boxes Use Text Drawing Space
1 parent e56b346 commit d28d9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CodeEditTextView/TextSelectionManager/TextSelectionManager+FillRects.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension TextSelectionManager {
2424

2525
var fillRects: [CGRect] = []
2626

27-
let insetXPos = max(edgeInsets.left, rect.minX)
27+
let insetXPos = max(layoutManager.edgeInsets.left, rect.minX)
2828
let insetWidth = max(0, rect.maxX - insetXPos - layoutManager.edgeInsets.right)
2929
let insetRect = NSRect(x: insetXPos, y: rect.origin.y, width: insetWidth, height: rect.height)
3030

0 commit comments

Comments
 (0)