vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

Problems with rename refactoring and undo #268

Open aeisenberg opened 11 years ago

aeisenberg commented 11 years ago
  1. Start with the following text:
var names;
for (var foo =0;foo<99;foo++) {
  console.log(names[foo]);
}
  1. Select the first foo (must be the entire word)
  2. Invoke rename refactoring
  3. Move caret so that it is at the start of foo.
  4. Type any char
  5. Craziness!
  6. Undo
  7. Even more craziness!
aclement commented 11 years ago

I knew that moving the cursor during the edit would break things (due to how we intercept the key presses), I don't think that is the same as the problem I was seeing with renaming misbehaving on undo. In my situation I was just typing the new chars and then undo, no cursor movement/pasting or anything else.