Bug 558680 - Move Lines Up/Down moves cursor within lines and changes selection
Summary: Move Lines Up/Down moves cursor within lines and changes selection
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-29 17:55 EST by Chris Jordan CLA
Modified: 2019-12-29 20:21 EST (History)
3 users (show)

See Also:


Attachments
See text. (1.11 KB, image/png)
2019-12-29 17:56 EST, Chris Jordan CLA
no flags Details
See text. (1.06 KB, image/png)
2019-12-29 18:01 EST, Chris Jordan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.