Skip to content

Commit 41e7ff5

Browse files
dmaclachmarijnh
authored andcommitted
[fold brace-fold] Stop indent when open/close on same line.
Fix for issue 5632.
1 parent 0874ab1 commit 41e7ff5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addon/fold/brace-fold.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ CodeMirror.registerHelper("fold", "brace", function(cm, start) {
5454
++pos;
5555
}
5656
}
57-
if (end == null || line == end && endCh == startCh) return;
57+
if (end == null || line == end) return;
5858
return {from: CodeMirror.Pos(line, startCh),
5959
to: CodeMirror.Pos(end, endCh)};
6060
});

0 commit comments

Comments
 (0)