You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the order of deletion is last, middleLines, first, the change events that get fired are in reverse order. If you watch those change events, the attached Range objects do not contain relevant ranges.
The three blocks in the linked lines should be reversed:
Thanks for responding @nightwing, you are right that the ranges appear correct after all and the issue was with my translation of those ranges to text offsets.
Because the order of deletion is last, middleLines, first, the
change
events that get fired are in reverse order. If you watch those change events, the attachedRange
objects do not contain relevant ranges.The three blocks in the linked lines should be reversed:
https://github.com/ajaxorg/ace/blob/master/lib/ace/document.js#L436-L445
The text was updated successfully, but these errors were encountered: