fix caret on tab at start of line

This commit is contained in:
Adam D. Ruppe 2025-12-03 13:43:09 -05:00
parent 736477b128
commit 6b3aba5374
1 changed files with 4 additions and 0 deletions

View File

@ -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);