improve outdent
This commit is contained in:
parent
117e1ad7aa
commit
5222fa63b1
1 changed files with 4 additions and 0 deletions
|
|
@ -505,6 +505,10 @@ ace.Editor = function(renderer, doc) {
|
||||||
var indentString = indentString || this.doc.getTabString();
|
var indentString = indentString || this.doc.getTabString();
|
||||||
var addedColumns = this.doc.outdentRows(this.getSelectionRange(), indentString);
|
var addedColumns = this.doc.outdentRows(this.getSelectionRange(), indentString);
|
||||||
|
|
||||||
|
// besides the indent string also outdent tabs
|
||||||
|
if (addedColumns == 0 && indentString != "\t")
|
||||||
|
var addedColumns = this.doc.outdentRows(this.getSelectionRange(), "\t");
|
||||||
|
|
||||||
this.selection.shiftSelection(addedColumns);
|
this.selection.shiftSelection(addedColumns);
|
||||||
this.$updateDesiredColumn();
|
this.$updateDesiredColumn();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue