Bug 577100 - Cursor caret horizontal position is not maintained when navigating rows/lines using the up/down arrow keys
Summary: Cursor caret horizontal position is not maintained when navigating rows/lines...
Status: CLOSED DUPLICATE of bug 576052
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.21   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-05 19:13 EDT by Matthew Weier CLA
Modified: 2021-11-11 05:00 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Weier CLA 2021-11-05 19:13:58 EDT
This issue is present when any type of file that I've tried (*.java, *.yaml, *.xml, *.css, *.html, *.js) is loaded in the main editor view.

This only began happening when I recently upgraded to the latest build (via Help -> Check for Updates).
Sorry, I don't recall what exact version I was one before the upgrade.

I also tried downloading the latest installer, installed a fresh installation and created a new workspace with a new project.
This issue was still present in this new workspace/project.


***************
* Explanation *
***************
When navigating between rows/lines using the up/down arrow keys (on your keyboard), the horizontal caret position is not maintained.

If you navigate past a row/line that has less characters than the horizontal caret position on the previous line, then the horizontal caret position will be equal to the length of the shortest row/line that was navigated past.


***********
* Example *
***********
The below example makes reference to the sample file represented below.

1) Using mouse, place cursor on line 1 between the "f" and the "g" characters.
2) Press the down-arrow button twice (2x) on keyboard.

Expected Outcome:
****************
The cursor is expected to be on line 3 between the "f" and the "g" characters.

Actual Outcome:
**************
The cursor is now on line 3 between the "c" and the "d" characters.

Sample File:
***********
  ______________________________________
1 | abcdefg
2 | abc
3 | abcdefghijklmnop
  ______________________________________
Comment 1 Rolf Theunissen CLA 2021-11-11 05:00:15 EST

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