Bug 577325 - Pressing Home key at start of line move cursor to start of document
Summary: Pressing Home key at start of line move cursor to start of document
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.22   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.22 RC2   Edit
Assignee: Mickael Istria CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
: 577324 (view as bug list)
Depends on:
Blocks: 466532
  Show dependency tree
 
Reported: 2021-11-18 04:44 EST by Stephen Colebourne CLA
Modified: 2021-11-19 05:33 EST (History)
5 users (show)

See Also:
akurtakov: pmc_approved+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Colebourne CLA 2021-11-18 04:44:10 EST
I'm using version: 2021-12 (4.22), Build id: I20211023-1800

If the caret is at the start of a line (in a Java file or an XML file), pressing the Home key causes the caret to move to the start of the document. This is a change in behaviour from previous releases, and I believe it to be a bug.

Note that I have smart caret positioning at line start/end switched off. The correct behaviour is that the caret should not move if it is already at the start of a line.
Comment 1 Stephen Colebourne CLA 2021-11-18 04:47:23 EST
*** Bug 577324 has been marked as a duplicate of this bug. ***
Comment 2 Andrey Loskutov CLA 2021-11-18 11:44:12 EST
Can you please try with I20211117-1830 (4.22 RC1 candidate)?

I can't reproduce your issue with that one (on Linux).
Comment 3 Stephen Colebourne CLA 2021-11-18 12:07:51 EST
Full reproducible by me on Windows 10.

* Downloaded I20211117-1830. 
* Unzipped and opened with a brand new workspace. 
* Set preference to have smart caret positioning at line start/end switched off.
* Create general project
* Create file a.txt
* Enter some text on a few lines
* Press the Home key twice
* First press goes to the start of the line (correct)
* Second press goes to the start of the document (bug)

Note that the bug is linked to setting the smart caret positioning preference OFF. If I have that set on ON then the bug does not happen.
Comment 4 Andrey Loskutov CLA 2021-11-18 12:24:03 EST
(In reply to Stephen Colebourne from comment #3) 
> Note that the bug is linked to setting the smart caret positioning
> preference OFF. If I have that set on ON then the bug does not happen.

I've missed that, I can reproduce. 
Is this a regression in 4.21?
Reminds me on bug 575942.
@Mickael: could you please check?
Comment 5 Mickael Istria CLA 2021-11-18 12:31:32 EST
I can reproduce it on Linux with a recent build.
I cannot reproduce it with 4.21.
So this seems to be a regression.
Comment 6 Eclipse Genie CLA 2021-11-18 13:56:17 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/187903
Comment 7 Mickael Istria CLA 2021-11-18 14:01:22 EST
This is a bug that was introduced with the changes for bug 466532.