Project: SWT
Bug 209468 StyledText#setSelection() does not reveal caret at end of line
Reported: 2007-11-12 05:49:58 | Status: resolved fixed

I20071107-1300 StyledText#setSelection() does not reveal caret at end of line. Steps: - CustomControlExample > StyledText - Size: 50 X 50 - set caret to before "One" - Set/Get API - setSelection to 58,58 - give focus to the text area without changing the caret location (e.g. click to the StyledText tab and then press the Tab key) => caret is not visible (it is just after "One Two Three") This problem is also visible in Eclipse text editors when you press the End key on a long line. The "native" End key behavior in StyledText is OK.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java