mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 16:46:48 +01:00
Last 2 params need to be applied to function
This commit is contained in:
@@ -281,13 +281,13 @@ var ICEcoder = {
|
||||
filename = filepath.substr(filepath.lastIndexOf("/")+1);
|
||||
fileExt = filename.substr(filename.lastIndexOf(".")+1);
|
||||
for (var i=changeObj.from.line; i<changeObj.from.line+changeObj.text.length; i++) {
|
||||
top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-1 ? "brace" : "xml" ,null ,"+" ,"-", true, thisCM, i);
|
||||
top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-1 ? "brace" : "xml" ,null ,"+" ,"-", true)(thisCM, i);
|
||||
}
|
||||
if (changeObj.text[0] == "}" || changeObj.removed && changeObj.removed[0] == "}") {
|
||||
cursor = thisCM.getSearchCursor("{",thisCM.getCursor(),false);
|
||||
cursor.findPrevious();
|
||||
for (var i=cursor.from().line; i<thisCM.getCursor().line; i++) {
|
||||
top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-1 ? "brace" : "xml" ,null ,"+" ,"-", true, thisCM, i);
|
||||
top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-1 ? "brace" : "xml" ,null ,"+" ,"-", true)(thisCM, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user