QScintilla/TypingCompleters/CompleterPython.py

changeset 91
f20b944b9c8c
parent 86
778f405e9411
child 97
c4086afea02b
--- 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