diff options
Diffstat (limited to 'Tools/idle')
-rw-r--r-- | Tools/idle/AutoIndent.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/idle/AutoIndent.py b/Tools/idle/AutoIndent.py index 1bdb05b..7784254 100644 --- a/Tools/idle/AutoIndent.py +++ b/Tools/idle/AutoIndent.py @@ -347,7 +347,7 @@ class AutoIndent: def comment_region_event(self, event): head, tail, chars, lines = self.get_region() - for pos in range(len(lines)): + for pos in range(len(lines) - 1): line = lines[pos] lines[pos] = '##' + line self.set_region(head, tail, chars, lines) |