Bug 576400 - Vertical cursor movement forgets column position
Summary: Vertical cursor movement forgets column position
Status: CLOSED DUPLICATE of bug 576052
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.21   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-01 16:23 EDT by John Churchill CLA
Modified: 2021-10-02 05:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Churchill CLA 2021-10-01 16:23:24 EDT
When moving the cursor vertically through code, the column of the cursor no longer maintains its column position when it passes through a shorter line.

For example:

XXXX   <-- place cursor here
XX
XXXXXX

From the end of the first line "XXXX", move down, cursor will move to the end of the second column (correct). Move to the third line, it is still positioned after "XX" (incorrect). It should have been positioned after the fourth "X" on the third line.

This worked in 4.21 and prior, and stopped working in 4.22. (It also works in this textarea control I am typing in now.)

MacOS 11.6
OpenJDK Runtime Environment (build 16.0.2+7-67)
Eclipse Version: 2021-09 (4.21.0) Build id: 20210910-1417

Works on previous Eclipse Version: 2021-06 (4.20.0) Build id: 20210612-2011
Comment 1 Andrey Loskutov CLA 2021-10-02 05:42:20 EDT

*** This bug has been marked as a duplicate of bug 576052 ***