outdent python after 'pass', 'raise', 'return', 'break' and 'continue'
fix #382
This commit is contained in:
parent
0a46b02ab9
commit
0c956185e3
5 changed files with 130 additions and 17 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue