If PtText is set to “Auto Highlight” (Pt_TEXT_AUTO_HIGHLIGHT) and the
horizontal alignment is “Center” (Pt_CENTER) when the widget gets the focus
a highlight will appear from the left edge of the widget all the way to the
right edge of the text. Even if the highlight is removed on the text (and
the caret is visible) there is a highlight from the left edge of the widget
to the left edge of the text. The only way to remove that highlight is to
force a redraw of the portion of the widget (by moving something in front of
it for example).
Is this a bug?