diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 2fa7d2f..3ac264b 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -309,13 +309,25 @@ var ICEcoder = { cursor.findPrevious(); searchPos.ch = cursor.from().ch; searchPos.line = cursor.from().line; + if (i==nestPos && 1==2) { + cursorX = cM.getSearchCursor(">",searchPos); + cursorX.findNext(); + searchPosX = new Object(); + searchPosX.ch = cursorX.from().ch+1; + searchPosX.line = cursorX.from().line; + cM.setCursor(searchPosX); + top.ICEcoder.getNestLocation(); + if (ICEcoder.htmlTagArray.length-1 != nestPos) { + i++; + } + } } // Once we've found our tag if (cursor.from()) { // Set our vars to match the start position startPos = new Object(); - top.ICEcoder.startPosCh = startPos.ch = cursor.from().ch; top.ICEcoder.startPosLine = startPos.line = cursor.from().line; + top.ICEcoder.startPosCh = startPos.ch = cursor.from().ch; // Now set an end position object that matches this start tag endPos = new Object(); endPos.line = top.ICEcoder.content.contentWindow.CodeMirror.tagRangeFinder(cM,startPos) || startPos.line;