Bug 559022 - CTRL+/ (Toggle Command) at line start misplaces caret and makes a selection
Summary: CTRL+/ (Toggle Command) at line start misplaces caret and makes a 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:32 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:32:13 EST
1 On the line:

  #define fred 0

place the caret immediately to left of #, making no selection.

2 Press CTRL+/. See caret remains immediately to left of #, making no selection.

3 Place the caret at line start, making no selection.

4 Press CTRL+/.

Expected: Caret remains immediately to left of #, with no selection.
Observed: Caret is at line start, to left of //, with // selected.
Comment 1 Jonah Graham CLA 2020-01-11 18:09:06 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:10:49 EST
Bug 559022 Bug 559021 and Bug 559019 are all very closely related, so See Also added to cross reference them.