Community
Participate
Working Groups
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.
*** Bug 577324 has been marked as a duplicate of this bug. ***
Can you please try with I20211117-1830 (4.22 RC1 candidate)? I can't reproduce your issue with that one (on Linux).
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.
(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?
I can reproduce it on Linux with a recent build. I cannot reproduce it with 4.21. So this seems to be a regression.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/187903
This is a bug that was introduced with the changes for bug 466532.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/187903 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=6ff1319e90cb6e78b3d6a79696f1ec4b121a1a72