mirror of https://github.com/adamdruppe/arsd.git
fix caret on tab at start of line
This commit is contained in:
parent
736477b128
commit
6b3aba5374
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue