onChange redo markers

Redo the markers for the changed range
This commit is contained in:
Matt Pass
2013-05-28 08:39:08 +01:00
parent 2665a3be40
commit ea959248ca

View File

@@ -212,6 +212,9 @@ function createNewCMInstance(num) {
var filepath = top.ICEcoder.openFiles[top.ICEcoder.selectedTab-1];
var filename = filepath.substr(filepath.lastIndexOf("/")+1);
var fileExt = filename.substr(filename.lastIndexOf(".")+1);
for (var i=changeObj.from.line; i<=changeObj.from.line; i++) {
top.ICEcoder.content.contentWindow.CodeMirror.newFoldFunction(top.ICEcoder.content.contentWindow.CodeMirror.tagRangeFinder,null,"+","-",true)(thisCM, i);
}
// Update HTML edited files live
if (top.ICEcoder.previewWindow.location) {
if (top.ICEcoder.previewWindow.location.pathname==filepath) {