181 m = re.search(r'(pass\s*(#.*)?$)|(^[^#]return)', |
181 m = re.search(r'(pass\s*(#.*)?$)|(^[^#]return)', |
182 editor.text(pline)) |
182 editor.text(pline)) |
183 if m: |
183 if m: |
184 last -= indent_width |
184 last -= indent_width |
185 |
185 |
186 if lead_spaces % indent_width != 0 or lead_spaces == 0 \ |
186 if ( |
187 or self.lastIndented != line: |
187 lead_spaces % indent_width != 0 or |
|
188 lead_spaces == 0 or |
|
189 self.lastIndented != line |
|
190 ): |
188 indentDifference = last - lead_spaces |
191 indentDifference = last - lead_spaces |
189 else: |
192 else: |
190 indentDifference = -indent_width |
193 indentDifference = -indent_width |
191 |
194 |
192 return indentDifference |
195 return indentDifference |