marijnh/CodeMirror2 — Issue #410: Marked Text gets "corrupted" after a multi-line change (like delete)
Author: aadsm
Created: 2012-03-02 18:04:38+00:00
State: open

I created an example where it's possible to reproduce this issue here: http://jsbin.com/ujipif/2/edit#javascript,html,live

0) The highlighted text is: "ine "
1) Make the following text selection: "s line 1\nThis i"
2) Hit delete
3) The highlighted text now is: "s line "

It seems that this happens when the new position of the marked text is within the change range.