rem: var firstPos = document.firstChar(line); 
add: var firstPos = document.firstCharPos(line); 
context: function indentNewLine(){    readSettings();    var line = view.cursorLine();    var column = view.cursorColumnReal();    var currentString = document.line(line);    var firstChar = currentString.charAt(document.firstChar(line));    var filler = -1;    if (filler == -1 && firstChar == '}')        filler = findOpeningBrace(line, column);    if (filler == -1)        filler = tryCComment(line);    if (filler == -1)        filler = tryCppComment(line);    if (filler == -1)        filler = tryBrace(line);    if (filler == -1 && firstChar != '{')        filler = tryCKeywords(line);    // we don't know what to do, let's simply keep the indentation    if (filler == -1)        filler = keepIndentation(line);    if (filler != -1) {        var firstPos = document.firstChar(line);        document.editBegin();        if (firstPos > 0)            document.removeText(line, 0, line, firstPos);        document.insertText(line, 0, filler);        view.setCursorPosition(line, filler.length);        document.editEnd();    }}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/cf2ffaa32d876fe8f95a098900ec8c956af8ab1e/script-indent-c-test.js/clean/kate/scripts/script-indent-c-test.js