disable auto indent for pasted code

This commit is contained in:
Fabian Jakobs 2011-02-17 10:37:35 +01:00
commit a7a7dc06f3

View file

@ -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;