Fixed TextFieldWidget::GetLeadingTabCount() overestimating tabs when caret is in front of line.