From ea959248ca8b48d0cf2a100e0b826bf228d9d241 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 28 May 2013 08:39:08 +0100 Subject: [PATCH] onChange redo markers Redo the markers for the changed range --- editor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor.php b/editor.php index fba2848..3d02885 100644 --- a/editor.php +++ b/editor.php @@ -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) {