QScintilla/TypingCompleters/CompleterPython.py

changeset 85
2d80c7a3e773
parent 13
1af94a91f439
child 86
778f405e9411
diff -r 277c4d00cfd6 -r 2d80c7a3e773 QScintilla/TypingCompleters/CompleterPython.py
--- a/QScintilla/TypingCompleters/CompleterPython.py	Sun Jan 24 19:10:23 2010 +0000
+++ b/QScintilla/TypingCompleters/CompleterPython.py	Sat Jan 30 10:38:46 2010 +0000
@@ -386,6 +386,8 @@
         @return flag indicating, if the cursor is inside a comment (boolean)
         """
         txt = self.editor.text(line)
+        if col == len(txt):
+            col -= 1
         while col >= 0:
             if txt[col] == "#":
                 return True

eric ide

mercurial