162 indentDifference = self.getIndentationDifference(lineFrom, editor) |
162 indentDifference = self.getIndentationDifference(lineFrom, editor) |
163 |
163 |
164 editor.beginUndoAction() |
164 editor.beginUndoAction() |
165 # iterate over the lines |
165 # iterate over the lines |
166 for line in range(lineFrom, endLine + 1): |
166 for line in range(lineFrom, endLine + 1): |
167 editor.setIndentation(line, |
167 editor.setIndentation( |
168 editor.indentation(line) + indentDifference) |
168 line, editor.indentation(line) + indentDifference) |
169 editor.endUndoAction() |
169 editor.endUndoAction() |
170 |
170 |
171 if self.lastIndentedIndex != 0: |
171 if self.lastIndentedIndex != 0: |
172 indexStart = indexFrom + indentDifference |
172 indexStart = indexFrom + indentDifference |
173 else: |
173 else: |