marijnh/CodeMirror — pull request #1171 by aking (2013-01-21 13:34:33+00:00)
Title: Fix for invalid matching symbol in vim keymap.

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. @mightyguava