diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 957f8448..69d5f5d9 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -430,8 +430,10 @@ var Editor =function(renderer, session) { this.moveCursorToPosition(end); var lineState = this.bgTokenizer.getState(cursor.row); - // multi line insert - if (cursor.row !== end.row) { + // TODO disabled multiline auto indent + // possibly doing the indent before inserting the text + // if (cursor.row !== end.row) { + if (this.session.getDocument().isNewLine(text)) { var size = this.session.getTabSize(), minIndent = Number.MAX_VALUE;