adobe/CodeMirror2 — pull request #73 by peterflynn (2012-07-19 07:12:37+00:00)
Title: Fix #1123 (Dragging text in editor breaks dirty flag)

Fix bug adobe/brackets#1123 (Dragging text in editor breaks dirty flag)

The introduction of compoundChange() introduced a new codepath in History.addChange() that was not present when the original dirty bit enhancement (pull #56) was written. It needs to be handled the same as the case below it since it too generates an additional undo step (i.e. an additional call to unredoHelper(), where the counter is decremented, at undo time).