Project: SWT
Bug 111798 Text#getCaretLocation() replaces selected text by " " iff caret is after last character
Reported: 2005-10-06 11:38:36 | Status: resolved fixed

I20051004-0800 - select the last few characters of a Text such that the caret is at the very end - call Text#getCaretLocation() => Selection is replaced by a space. => Neither selection nor text should be changed. This can easily be reproduced in Eclipse: - have: void m() { new java.util.ArrayList(); } - select "new java.util.ArrayList()" - Refactor > Extract Local Variable - press Ctrl+Space

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java