Bug 558680

Summary: Move Lines Up/Down moves cursor within lines and changes selection
Product: [Eclipse Project] Platform Reporter: Chris Jordan <chrisjj>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: cdtdoug, jonah, zeratul976
Version: 4.10   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
See text.
none
See text. none

Description Chris Jordan CLA 2019-12-29 17:55:04 EST
1 On 

    float mule(vec3 v) { return v.x*v.y*v.z; }

double click vec3: https://i.imgur.com/4BjfIUQ.png

2 Press the key for Move Lines Down or Up.

Expected: Cursor position and selection retained within line
Observed: Cursor moved to col 1 and selection extended to whole line: https://i.imgur.com/2tZa7HB.png
Comment 1 Chris Jordan CLA 2019-12-29 17:56:52 EST
Created attachment 281351 [details]
See text.
Comment 2 Chris Jordan CLA 2019-12-29 18:01:24 EST
Created attachment 281352 [details]
See text.
Comment 3 Chris Jordan CLA 2019-12-29 18:02:41 EST
PS I can find no user documentation on these commands so expectation is based solely on what I judge would be most useful.
Comment 4 Nathan Ridge CLA 2019-12-29 20:21:09 EST
The relevant code lives in org.eclipse.ui.texteditor.MoveLinesAction.