Project: SWT
Bug 26362 StyledText - investigate necessary state changes between handleTextChanging and handleTextChanged
Reported: 2002-11-14 11:48:36 | Status: resolved fixed

According to the article, one should send handleTextChanging event, update styles, then send handleTextChanged event. If during the update styles step, one calls style range API (e.g., setStyleRange, replaceStyleRanges), the caretOffset could get out of sync. Also need to consider other state that could be out of sync.

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