Bug 559021 - Undo CTRL+/ fails to retain cursor position and makes selection
Summary: Undo CTRL+/ fails to retain cursor position and makes selection
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 9.6.0   Edit
Hardware: PC Windows 7
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2020-01-10 08:25 EST by Chris Jordan CLA
Modified: 2020-01-11 18:11 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jordan CLA 2020-01-10 08:25:37 EST
1 On the line

  float a;

double-click float to select it and place caret at its end.

2 Press CTRL+/, CTRL+Z.

Expected: float remains selected with caret at end.
Observed: caret moved to line start, with no selection.
Comment 1 Jonah Graham CLA 2020-01-11 18:08:15 EST
This is same as JDT - but that is because the ToggleCommentAction was originally copied from JDT.

This may make a good bug to get familar with CDT so I added the helpwanted tag.
Comment 2 Jonah Graham CLA 2020-01-11 18:11:39 EST
Bug 559022 Bug 559021 and Bug 559019 are all very closely related, so See Also added to cross reference them.