From 6b3aba5374328936717815703ce1ab693af774ef Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 3 Dec 2025 13:43:09 -0500 Subject: [PATCH] fix caret on tab at start of line --- textlayouter.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/textlayouter.d b/textlayouter.d index b921927..77f7275 100644 --- a/textlayouter.d +++ b/textlayouter.d @@ -1503,6 +1503,10 @@ class TextLayouter { auto bb = boundingBoxOfGlyph(segmentIndex, selection.focus); + // the y is added elsewhere already. i think. + bb.left += segment.upperLeft.x; + bb.right += segment.upperLeft.x; + bb.top += castFnumToCnum(glyphStyle.font.ascent); bb.bottom -= castFnumToCnum(glyphStyle.font.descent);