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