Project: SWT
Bug 50256 Text#getCaretLocation() sends erroneous Modify event
Reported: 2004-01-20 03:32:34 | Status: resolved fixed

When I call Text#getCaretLocation(), the implementation sends two OS.EM_REPLACESEL messages. Both of them cause an execution of sendEvent (SWT.Modify), which can cause unexpected behavior in client code listening to "true" modify events. The two modify events (adding a space character, and removing it) should not be sent out.

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