Bug 559025 - Undo can fail to restore caret position
Summary: Undo can fail to restore caret position
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: 2020-01-10 08:45 EST by Chris Jordan CLA
Modified: 2020-01-11 22:22 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:45:09 EST
1 On the line

#define X 0

place the caret to immediate right of X and press SHIFT-LeftArrow to select X, leaving caret left of X.

2 Type Y

3 Press CTRL+Z (Undo).

Expected: text, selection and caret restored.
Observed: text and selection restored, but caret moved to right of X.

Note: Undo is undocumented (as far as I can tell) and so unspecified behaviour.
Comment 1 Jonah Graham CLA 2020-01-11 22:22:57 EST
Common to all editors AFAICT.