When the matching symbol of a closing bracket is on a different line, it will match to the incorrect opening bracket. For example, go to http://codemirror.net/demo/vim.html and place the cursor on the closing brace at line 11 and press '%'. It will incorrectly match the opening brace on line 4 instead of the brace on line 8. This patch fixes that by starting the line search at the *end* of the line when searching backwards.
The mark would disappear into thin air if it was on a line affected by the undo (or redo). Now it is properly preserved.
- Move a lot of methods from the CodeMirror to the Doc prototype - Allow getting, attaching, and copying of Doc objects - Add linkedDoc to create documents that stay in sync - Allow such linked docs to be sub-view on their parent - Rewrite history handling - Remove the concept of a view Documentation still failing.