Bug 577727 - Pos1/Home inverts direction of the selection
Summary: Pos1/Home inverts direction of the selection
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.22   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 4.23 M2   Edit
Assignee: Stephan Wahlbrink CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
: 578278 578493 578592 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-09 16:29 EST by Stephan Wahlbrink CLA
Modified: 2022-03-22 09:24 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Wahlbrink CLA 2021-12-09 16:29:34 EST
Pos1 moves the cursor from selection end to selection start in text editors:

1. In a text editor, add line with indent and text (e.g. "  test")
2. Set cursor to the line start
3. Select the line by pressing End key (or Arrow Down)
   => the line is selected
      the cursor is at the selection end
4. Press Pos1
   => only the indent is selected
      the cursor is at the selection start
   
Expected: the cursor remains at the selection end
Comment 1 Stephan Wahlbrink CLA 2021-12-09 16:30:46 EST
It was working as expected in previous Eclipse versions.
Comment 2 Stephan Wahlbrink CLA 2021-12-09 16:41:34 EST
In the steps, I forgot Shift key for the selection actions:
 2. Line Start
 3. Shift + End 
 4. Shift + Pos1
Comment 3 Stephan Wahlbrink CLA 2021-12-09 17:05:48 EST
It seems this was introduced by commit I8300bf2635f6527bed0300f09feea48221553f7c ?
Comment 4 Eclipse Genie CLA 2021-12-09 17:28:52 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/188716
Comment 5 Andrey Loskutov CLA 2021-12-10 04:33:21 EST
Yep, can reproduce on master / Linux.
@Mickael: can you please check?
Comment 7 Mickael Istria CLA 2022-01-20 13:02:21 EST
Thanks Stephan!
Comment 8 Mickael Istria CLA 2022-01-21 03:14:48 EST
*** Bug 578278 has been marked as a duplicate of this bug. ***
Comment 9 Rolf Theunissen CLA 2022-02-03 10:10:59 EST
*** Bug 578493 has been marked as a duplicate of this bug. ***
Comment 10 Robert Kish CLA 2022-02-04 18:06:53 EST
*** Bug 578592 has been marked as a duplicate of this bug. ***
Comment 11 Hrvoje Lončar CLA 2022-03-22 09:24:06 EDT
Thank you all! <3