--- a/QScintilla/TypingCompleters/CompleterPython.py Tue Jul 27 19:53:51 2010 +0200 +++ b/QScintilla/TypingCompleters/CompleterPython.py Thu Jul 29 18:34:43 2010 +0200 @@ -123,7 +123,8 @@ # closing parenthesis # skip matching closing parenthesis elif char in [')', '}', ']']: - if char == self.editor.text(line)[col]: + txt = self.editor.text(line) + if col < len(txt) and char == txt[col]: if self.__skipBrace: self.editor.setSelection(line, col, line, col + 1) self.editor.removeSelectedText()