Fixed a bug causing a traceback.

Sun, 31 Jan 2010 11:52:29 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 31 Jan 2010 11:52:29 +0000
changeset 91
f20b944b9c8c
parent 90
6de42151f9e6
child 92
30ffedc3e418

Fixed a bug causing a traceback.

QScintilla/TypingCompleters/CompleterPython.py file | annotate | diff | comparison | revisions
--- a/QScintilla/TypingCompleters/CompleterPython.py	Sun Jan 31 11:48:51 2010 +0000
+++ b/QScintilla/TypingCompleters/CompleterPython.py	Sun Jan 31 11:52:29 2010 +0000
@@ -177,7 +177,7 @@
         # skip colon, dedent to if for else:
         elif char == ':':
             text = self.editor.text(line)
-            if col < len(text) and char == txt[col]:
+            if col < len(text) and char == text[col]:
                 if self.__colonDetection:
                     self.editor.setSelection(line, col, line, col + 1)
                     self.editor.removeSelectedText()

eric ide

mercurial