marijnh/CodeMirror2 — Issue #286: Incorrect marker position(code folding).
Author: jurek7
Created: 2011-12-12 11:17:24+00:00
State: open

To reproduce:

open: http://codemirror.net/demo/folding.html

1. Press ctrl+A to select all
2. Copy
3. Paste it to reach about 400 lines
4. Go to {cursor_pos}

var foldFunc = CodeMirror.newFoldFunction(CodeMirror.braceRangeFinder);{cursor_pos}
function keyEvent(cm, e) {
.....

5. Press enter key few times.
6. Result: arrows for expand code stopped in incorrect position.