Skip to content

Commit db2d940

Browse files
committed
Inset Selection Rect By Leading Edge
1 parent 509d7b2 commit db2d940

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
@@ -38,7 +38,7 @@ extension TextSelectionManager {
3838

3939
if firstLinePosition.yPos + firstLinePosition.height < lastLinePosition.yPos {
4040
fillRects.append(CGRect(
41-
x: rect.minX,
41+
x: max(layoutManager.edgeInsets.left, rect.minX),
4242
y: firstLinePosition.yPos + firstLinePosition.height,
4343
width: rect.width,
4444
height: lastLinePosition.yPos - (firstLinePosition.yPos + firstLinePosition.height)

0 commit comments

Comments
 (0)