rem: var indentLevel = document.firstCharPosVirtual(currentLine); if (indentLevel == 0) 
add: var indentLevelVirtual = document.firstCharPosVirtual(currentLine); if (indentLevelVirtual == 0) 
context: function tryCondition(line){    var currentLine = line - 1;    if (currentLine < 0)        return -1;    var lastPos = -1;    var lineDelimiter = gLineDelimiter;    // search non-empty line    while (currentLine >= 0 && lineDelimiter > 0) {        lastPos = document.lastCharPos(currentLine);        if (lastPos != -1) {            break;        }        --currentLine;        --lineDelimiter;    }    if (lastPos == -1)        return -1;    // found non-empty line    var currentString = document.line(currentLine);    var lastChar = currentString.charAt(lastPos);    var indentation = -1;    if (lastChar == ';'        && currentString.search(/^\s*(if\b|do\b|while\b|for)/) == -1)    {        // idea: we had something like:        //   if/while/for (expression)        //       statement();  <-- we catch this trailing ';'        // Now, look for a line that starts with if/for/while, that has one        // indent level less.        var indentLevel = document.firstCharPosVirtual(currentLine);        if (indentLevel == 0)            return -1;        var lineDelimiter = 10; // 10 limit search, hope this is a sane value        while (currentLine > 0 && lineDelimiter > 0) {            --currentLine;            --lineDelimiter;            var firstPos = document.firstCharPosVirtual(currentLine);            if (firstPos == -1)                continue;            if (firstPos < indentLevel) {                currentString = document.line(currentLine);                if (currentString.search(/^\s*(if\b|do\b|while\b|for)/) != -1)                    indentation = indentString(g50spaces.substring(0, firstPos));                break;            }        }    }    return indentation;}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/7cad0c927379ef77bee60890e6b74abb2b5075dd/script-indent-c-test.js/buggy/kate/scripts/script-indent-c-test.js