outdent python after 'pass', 'raise', 'return', 'break' and 'continue'

fix #382
This commit is contained in:
Fabian Jakobs 2011-08-18 12:37:51 +02:00
commit 0c956185e3
5 changed files with 130 additions and 17 deletions

View file

@ -513,11 +513,9 @@ var Editor =function(renderer, session) {
session.remove(new Range(row, 0, row, i));
}
session.indentRows(cursor.row + 1, end.row, lineIndent);
} else {
if (shouldOutdent) {
mode.autoOutdent(lineState, session, cursor.row);
}
}
if (shouldOutdent)
mode.autoOutdent(lineState, session, cursor.row);
};
this.onTextInput = function(text, notPasted) {