Cursor "jumping" when using "undo" in the Code Spec editor
Observed behavior
The cursor may “jump” by 2 chars from the previous location if the undo operation is triggered. This position is also not the one, the cursor had before the undo operation.
Expected Behavior
The cursor should remain at its position.
How to reproduce
1. Open a model containing a code specificaiton, e.g., the ACC
example.
2. Open a code specificaiton and edit it.
3. Press Ctrl+Z and notice the cursor “jumps”.
(from redmine: issue id 3515, created on 2018-09-17, closed on 2020-10-27)