Project: SWT
Bug 56765 StyledText - Fix calculating of cursor level
Reported: 2004-03-30 11:35:51 | Status: resolved fixed

Cursor level is broken in the following cases: 1. doBackspace(), doDelete(). Expected behavior: cursor level is set to the level of the deleted character. Actual behavior: cursor level is set to the level of the preceding character. 2. doLineStart(), doLineEnd(). Expected: cursor level is derived from the paragraph level. Actual: cursor level is derived from the level of the first/last character. Suggested solution: cache cursor level in the above methods.

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