adobe/brackets — pull request #1817 by njx (2012-10-11 22:23:10+00:00)
Title: Update hidden lines when syncing a change from the current editor into the document

After edits that affect an inline editor, we try to resync the set of hidden/shown lines in CodeMirror to match what we think the visible range to be. But we were only doing that in the case where the edit came from a different editor. We also need to do it when the edit comes from our own editor. Ordinary edits can't affect lines outside of the visible range, but undo/redo can (because they can cause changes to other areas of the underlying document).