Page MenuHomePhabricator

VisualEditor: Typing over a link doesn't undo correctly
Closed, ResolvedPublic

Description

  1. Select a link fully
  2. Type one letter
  3. Press undo

Observer the first letter of the link is no longer linked.


Version: unspecified
Severity: normal

Details

Reference
bz68677

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:40 AM
bzimport set Reference to bz68677.

Change 149633 had a related patch set uploaded by Esanders:
Copy annotation indexes before returning

https://gerrit.wikimedia.org/r/149633

The cause here is that the removal data in the transaction gets modified by annotationSet.removeAt(). Now the recorded removal data doesn't match the actual data that was there. If you created that link in this session then you also have have a sequence of transactions that don't connect.

Change 149633 merged by jenkins-bot:
Copy annotation indexes before returning

https://gerrit.wikimedia.org/r/149633