This commit is contained in:
Fabian Jakobs 2010-09-13 16:30:20 +02:00
Родитель 117e1ad7aa
Коммит 5222fa63b1
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -505,6 +505,10 @@ ace.Editor = function(renderer, doc) {
var indentString = indentString || this.doc.getTabString();
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.$updateDesiredColumn();
};