codemirror 3.18 with enabled the fullscreen addon
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
CodeMirror.indentRangeFinder = function(cm, start) {
|
||||
CodeMirror.registerHelper("fold", "indent", function(cm, start) {
|
||||
var tabSize = cm.getOption("tabSize"), firstLine = cm.getLine(start.line);
|
||||
var myIndent = CodeMirror.countColumn(firstLine, null, tabSize);
|
||||
for (var i = start.line + 1, end = cm.lineCount(); i < end; ++i) {
|
||||
@@ -8,4 +8,5 @@ CodeMirror.indentRangeFinder = function(cm, start) {
|
||||
return {from: CodeMirror.Pos(start.line, firstLine.length),
|
||||
to: CodeMirror.Pos(i, curLine.length)};
|
||||
}
|
||||
};
|
||||
});
|
||||
CodeMirror.indentRangeFinder = CodeMirror.fold.indent; // deprecated
|
||||
|
||||
Reference in New Issue
Block a user