QScintilla/Lexers/Lexer.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3030
4a0a82ddd9d2
child 3060
5883ce99ee12
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
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:

eric ide

mercurial